/* ============================================================
   新闻详情页样式 news-detail.css
   配色与全站一致：主绿 #497510 / 金 #ccab69 / 正文 #5b5b5b
   ============================================================ */

/* 页面基础 */
body {
  margin: 0;
  background: #f3f1ea;
  color: #5b5b5b;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 顶部条 */
.nd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 2px solid #497510;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.nd-header .nd-logo img {
  height: 40px;
  display: block;
}
.nd-nav a {
  margin-left: 18px;
  color: #497510;
  text-decoration: none;
  font-size: 14px;
}
.nd-nav a:hover {
  color: #ccab69;
}

/* 主体容器 */
.nd-main {
  max-width: 820px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

/* 面包屑 */
.nd-breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}
.nd-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.nd-breadcrumb a:hover {
  color: #497510;
}
.nd-breadcrumb span {
  color: #497510;
}

/* 文章卡片 */
.nd-article {
  background: #fff;
  border-radius: 10px;
  padding: 32px 36px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* 标题 */
.nd-article h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.4;
  color: #333;
  font-weight: 700;
}

/* 元信息 */
.nd-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #999;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ede4;
  margin-bottom: 20px;
}
.nd-cat {
  display: inline-block;
  background: #ecf3e2;
  color: #497510;
  border: 1px solid #9eb6a0;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 12px;
}

/* 正文 */
.nd-body {
  font-size: 15px;
  line-height: 2;
  color: #5b5b5b;
  text-align: justify;
}
.nd-body p {
  margin: 0 0 18px;
  text-indent: 2em;
}

/* 返回按钮 */
.nd-back {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0ede4;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nd-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: #ccab69;
  transition: background 0.2s;
}
.nd-btn:hover {
  background: #497510;
}

/* 页脚（复用全站版权） */
#footer {
  background: #2c2c2a;
  color: #b4b2a9;
  padding: 28px 0;
  font-size: 13px;
  line-height: 1.9;
}
/* 新闻页 footer 复用首页原版样式（mengtu005.css），不做额外覆盖 */
/* 统一 footer 文字颜色，去掉 tips 绿色 */
#footer .copyright .tips {
  color: #999;
}

/* 列表页 */
.nd-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.nd-list-title {
  font-size: 22px;
  color: #333;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid #497510;
}
.nd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.nd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid #f0ede4;
}
.nd-item:last-child {
  border-bottom: none;
}
.nd-item:hover {
  background: #faf9f4;
}
/* 缩略图 */
.nd-thumb-wrap {
  flex: 0 0 120px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  line-height: 0;
}
.nd-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  transition: transform 0.25s;
}
.nd-thumb-wrap:hover .nd-thumb {
  transform: scale(1.05);
}
.nd-date {
  flex: 0 0 92px;
  color: #999;
  font-size: 13px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
.nd-link {
  flex: 1;
  color: #444;
  text-decoration: none;
  font-size: 15px;
}
.nd-link:hover {
  color: #497510;
}
.nd-tag {
  flex: 0 0 auto;
  font-size: 12px;
  color: #497510;
  background: #ecf3e2;
  border: 1px solid #9eb6a0;
  border-radius: 4px;
  padding: 2px 10px;
}

/* 分页导航（标题行右侧） */
.nd-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.nd-page {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d3c4;
  border-radius: 6px;
  background: #fff;
  color: #497510;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.nd-page:hover {
  border-color: #497510;
  background: #ecf3e2;
}
.nd-page.current {
  background: #497510;
  border-color: #497510;
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.nd-page.disabled {
  color: #c2bfb4;
  background: #faf9f4;
  border-color: #ece8dd;
  pointer-events: none;
}
/* 前往页码 */
.nd-goto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  font-size: 13px;
  color: #888;
}
.nd-goto-input {
  width: 46px;
  height: 30px;
  text-align: center;
  border: 1px solid #d9d3c4;
  border-radius: 6px;
  font-size: 13px;
  color: #497510;
  -moz-appearance: textfield;
}
.nd-goto-input::-webkit-outer-spin-button,
.nd-goto-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.nd-goto-btn {
  height: 30px;
  padding: 0 11px;
  border: 1px solid #497510;
  border-radius: 6px;
  background: #497510;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.nd-goto-btn:hover {
  background: #3c6210;
}
@media (max-width: 640px) {
  .nd-list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nd-pager {
    justify-content: flex-start;
  }
  .nd-goto {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nd-item {
    display: block;
    position: relative;
    padding: 14px 16px 14px 108px;
    min-height: 82px;
  }
  .nd-thumb-wrap {
    position: absolute;
    left: 16px;
    top: 14px;
    flex: none;
  }
  .nd-thumb {
    width: 80px;
    height: 54px;
  }
  .nd-link {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 72px 8px 0;
  }
  .nd-date {
    position: absolute;
    right: 16px;
    top: 14px;
    font-size: 12px;
    color: #999;
  }
  .nd-tag {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nd-article {
    padding: 22px 18px;
  }
  .nd-article h1 {
    font-size: 21px;
  }
  .nd-body {
    font-size: 14px;
  }
  #footer .mainbox {
    flex-direction: column;
    text-align: center;
  }
  /* 新闻页底部版权紧凑化 */
  #footer { padding: 2px 0 !important; font-size: 10px !important; line-height: 15px !important; }
  #footer .copyright { padding: 2px 12px !important; font-size: 10px !important; line-height: 15px !important; }
  /* 返回按钮紧凑化 */
  .nd-back { margin-top: 12px; padding-top: 12px; }
  .nd-btn { padding: 8px 18px; font-size: 13px; }
}

/* WebP fallback container: <picture> must not affect layout */
picture { display: contents; }
