/* 0. 变量 & 主题 */
:root {
  --primary: #333;
  --primary-light: #e5f0ff;
  --text-main: #222;
  --text-second: #666;
  --bg: #fff;
  --line: #e8e8e8;
  --radius: 6px;
  --max-width: 960px;
  --gap: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #333;
    --primary-light: rgba(61, 141, 255, .15);
    --text-main: #e5e5e5;
    --text-second: #a3a3a3;
    --bg: #121212;
    --line: #333;
  }
}

/* 1. 整体布局 */
.ny_content_wrap {
  background: var(--bg);
  min-height: 100vh;
  padding: 40px 0;
}

.ny_content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* 2. 面包屑 */
.bread_nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.bread_nav h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.bread_nav div {
  font-size: 14px;
  color: var(--text-second);
}

.bread_nav a {
  color: var(--text-second);
  text-decoration: none;
}

.bread_nav a:hover {
  color: var(--primary);
}

.bread_nav em {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  margin: 0 6px;
  vertical-align: middle;
}

/* 3. 新闻容器 */
.ny_news_con {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

/* 4. 标题 & 元信息 */
#newsTitle {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center;
}

#newsMeta {
  font-size: 14px;
  color: var(--text-second);
  margin-bottom: 24px;
  text-align: center;
}

/* 5. 正文区域 */
#newsContent {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}

#newsContent img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}

#newsContent p {
  margin: 16px 0;
}

#newsContent h1,
#newsContent h2,
#newsContent h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* 6. 动画（已预留 wow.js 类名） */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.wow.slideInUp {
  animation: slideInUp 1s both;
}

/* 7. 响应式 */
@media (max-width: 768px) {
  .bread_nav h2 {
    font-size: 22px;
  }

  #newsTitle {
    font-size: 24px;
  }

  #newsContent {
    font-size: 16px;
  }

  .ny_news_con {
    padding: 20px;
  }
}

/* ========== 新闻列表专用 ========== */
.ny_news_con2{max-width:880px;margin:0 auto;}
.new_inside{list-style:none;padding:0;margin:0;}
.new_inside li{
    position:relative;
    padding:24px 0;
    border-bottom:1px solid #eaeaea;
    transition:all .3s ease;
}
.new_inside li:hover{
    background:#fafafa;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    transform:translateY(-2px);
}
.news_box{display:flex;align-items:center;justify-content:space-between;}
.news_txt{flex:1;padding-right:20px;}
.news_txt a span{
    font-size:18px;
    color:#333;
    line-height:1.5;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.news_txt a:hover span{color:#0066ff;}
.news_txt i{
    display:block;
    font-size:14px;
    color:#666;
    margin-top:8px;
    line-height:1.6;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
/* 日期色块 */
.news_date{
    width:72px;
    text-align:center;
    margin:0 24px 0 16px;
    flex-shrink:0;
}
.news_date span{
    display:block;
    font-size:26px;
    font-weight:600;
    color:#fff;
    background:#0066ff;
    line-height:40px;
    border-radius:4px 4px 0 0;
}
.news_date i{
    display:block;
    font-size:14px;
    color:#0066ff;
    background:#e6f0ff;
    line-height:22px;
    border-radius:0 0 4px 4px;
    font-style:normal;
}
/* 箭头 */
.arrow_left{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#f2f2f2;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;
}
.arrow_left i{
    width:0;
    height:0;
    border-left:8px solid #0066ff;
    border-top:6px solid transparent;
    border-bottom:6px solid transparent;
}
.new_inside li:hover .arrow_left{background:#0066ff;}
.new_inside li:hover .arrow_left i{border-left-color:#fff;}

/* 响应式 */
@media(max-width:768px){
    .news_box{flex-wrap:wrap;}
    .news_txt{width:100%;padding-right:0;}
    .news_date{margin:12px 0 0 0;display:flex;width:auto;}
    .news_date span,
    .news_date i{border-radius:0;font-size:16px;line-height:28px;padding:0 8px;}
    .arrow_left{margin-left:auto;}
}

/* ========== 分页条专用 ========== */
.dede_pages {
  margin-top: 40px;
  text-align: center;
  font-size: 0;   /* 去除 inline-block 间隙 */
}
#pageUI {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
#pageUI a {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  margin: 4px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
}
#pageUI a:hover {
  background: #0066ff;
  color: #fff;
  border-color: #0066ff;
  box-shadow: 0 2px 8px rgba(0,102,255,.25);
  transform: translateY(-2px);
}
/* 当前页 */
#pageUI a.page-num-current {
  background: #0066ff;
  color: #fff;
  border-color: #0066ff;
  cursor: default;
}
#pageUI a.page-num-current:hover {
  box-shadow: none;
  transform: none;
}
/* 禁用状态（首页/上一页/下一页/末页 到边界时） */
#pageUI a.disabled {
  background: #f5f5f5;
  color: #ccc;
  border-color: #e0e0e0;
  cursor: not-allowed;
}
#pageUI a.disabled:hover {
  background: #f5f5f5;
  color: #ccc;
  box-shadow: none;
  transform: none;
}

/* 小屏居中自适应 */
@media (max-width: 576px) {
  #pageUI a {
      min-width: 34px;
      height: 34px;
      line-height: 34px;
      font-size: 13px;
      margin: 3px;
  }
}