/* ============================================================
   xxmr.cn · news.css —— 资讯列表 / 详情 / 公告 / 分类 页面样式
   ============================================================ */

/* ---------- 资讯列表主区 ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }

/* 文章行（列表） */
.news-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: #FFFDF9;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.news-row:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-row .nr-pic { position: relative; overflow: hidden; min-height: 190px; }
.news-row .nr-pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s var(--ease); }
.news-row:hover .nr-pic img { transform: scale(1.07); }
.news-row .nr-pic .nr-cat {
  position: absolute;
  left: 12px; top: 12px;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  color: var(--coffee-950);
  background: linear-gradient(90deg, var(--gold), var(--latte-soft));
  z-index: 2;
}
.news-row .nr-main { padding: 24px 26px 26px; display: flex; flex-direction: column; }
.news-row .nr-main h2 { font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.news-row .nr-main h2 a { transition: color .2s; }
.news-row .nr-main h2 a:hover { color: var(--gold-deep); }
.news-row .nr-main p { font-size: 14px; color: var(--gray-500); line-height: 1.9; }
.news-row .nr-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--gray-400); }
.news-row .nr-foot .nr-more { margin-left: auto; color: var(--gold-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.news-row .nr-foot .nr-more svg { width: 13px; height: 13px; transition: transform .25s; }
.news-row:hover .nr-foot .nr-more svg { transform: translateX(4px); }

/* 简易文章行（无图） */
.news-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px dashed var(--gray-200);
  transition: padding-left .25s;
}
.news-line:hover { padding-left: 10px; }
.news-line .nl-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.news-line h3 { font-size: 15px; flex: 1; line-height: 1.6; }
.news-line h3 a:hover { color: var(--gold-deep); }
.news-line .nl-date { font-size: 12.5px; color: var(--gray-400); flex-shrink: 0; }

/* ---------- 公告页 ---------- */
.gonggao-hero { background: var(--coffee-900); color: var(--cream-50); padding: calc(var(--header-h) + 60px) 0 90px; position: relative; overflow: hidden; }
.gonggao-hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 94, .22), transparent 65%);
}
.gonggao-hero h1 { color: var(--cream-50); font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 10px; }
.gonggao-hero p { color: rgba(251, 247, 240, .68); max-width: 560px; }
.gonggao-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; }

/* 批次表 */
.batch-card {
  background: #FFFDF9;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: box-shadow .3s;
}
.batch-card:hover { box-shadow: var(--shadow-md); }
.batch-card .bc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.batch-card .bc-batch {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coffee-950);
  background: linear-gradient(90deg, var(--gold), var(--latte-soft));
}
.batch-card .bc-status { font-size: 12.5px; color: #3F6B4F; background: #EAF4EC; padding: 4px 12px; border-radius: 999px; }
.batch-card .bc-status.closed { color: #B3541E; background: #FBEAD8; }
.batch-card .bc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.batch-card .bc-item { background: var(--cream-100); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-soft); }
.batch-card .bc-item b { display: block; font-size: 14.5px; color: var(--coffee-700); margin-bottom: 2px; }

/* ---------- 资讯详情 ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.article-card {
  background: #FFFDF9;
  border: 1px solid var(--sand);
  border-radius: var(--radius-l);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.article-card .ac-head { padding-bottom: 26px; border-bottom: 1px solid var(--gray-200); margin-bottom: 30px; }
.article-card .ac-head h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.45; margin: 16px 0; }
.article-card .ac-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--gray-500); }
.article-card .ac-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-card .ac-meta svg { width: 15px; height: 15px; color: var(--latte); }
.article-card .ac-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.article-card .ac-img img { width: 100%; max-height: 420px; object-fit: cover; }
.article-card .ac-foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
}
.article-card .ac-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-card .ac-tags a { padding: 5px 14px; border-radius: 999px; background: var(--cream-100); color: var(--coffee-500); font-size: 12.5px; transition: all .25s; }
.article-card .ac-tags a:hover { background: var(--gold-soft); color: var(--gold-deep); }

/* 详情页相邻文章 */
.ac-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ac-pager a {
  background: var(--cream-100);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: all .25s;
}
.ac-pager a:hover { background: var(--gold-soft); color: var(--coffee-700); }
.ac-pager a small { display: block; font-size: 11.5px; color: var(--gray-400); margin-bottom: 4px; letter-spacing: 1px; }
.ac-pager .ap-prev { text-align: left; }
.ac-pager .ap-next { text-align: right; }

/* 标签替换区（CMS 列表容器） */
.cms-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.cms-list .cms-block { padding: 14px 0; border-bottom: 1px dashed var(--gray-200); }
.cms-list .cms-block:last-child { border-bottom: 0; }
.cms-tag {
  display: block;
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 12px;
  color: var(--coffee-500);
  background: var(--cream-100);
  border: 1px dashed var(--latte);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.7;
}

/* ---------- 资讯响应式 ---------- */
@media (max-width: 1080px) {
  .news-layout, .detail-layout { grid-template-columns: 1fr; }
  .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .news-row { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row .nr-pic { height: 190px; position: relative; }
  .news-row .nr-pic img { position: absolute; }
  .article-card { padding: 28px 22px; }
  .batch-card .bc-grid { grid-template-columns: 1fr 1fr; }
  .ac-pager { grid-template-columns: 1fr; }
  .side-col { grid-template-columns: 1fr; }
}
