/* 新闻栏目专有样式：栏目中心页 / 分类列表页 / 文章详情页 */

.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ---------- 列表条目（行式卡片，结构全站一致） ---------- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--edge);
}
.post-item {
  margin: 0;
  border-bottom: 2px solid var(--edge);
  padding: 24px 4px;
  transition: background 180ms ease, padding-left 180ms ease;
}
.post-item:hover { background: var(--brand-soft); padding-left: 14px; }
.post-item-inner {
  display: grid;
  grid-template-columns: 92px 1fr 200px;
  gap: 26px;
  align-items: start;
}
.post-date {
  font-family: var(--font-mono);
  color: var(--ink);
  line-height: 1.1;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}
.post-date .d { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.post-date .y { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 0.1em; margin-top: 4px; }
.post-main h2 { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
.post-main h2 a { color: var(--ink); }
.post-main h2 a:hover { color: var(--brand-strong); }
.post-main p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  border: 1px solid var(--brand);
  padding: 2px 8px;
  border-radius: var(--radius);
  background: #fff;
}
.post-tags .read { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.post-thumb {
  display: block;
  border: 2px solid var(--edge);
  overflow: hidden;
  background: #fff;
}
.post-thumb img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform 320ms ease; }
.post-item:hover .post-thumb img { transform: scale(1.04); }

/* ---------- 侧栏 ---------- */
.side-box {
  border: 2px solid var(--edge);
  background: #fff;
  padding: 22px 22px 24px;
  margin-bottom: 24px;
}
.side-box h2 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--edge);
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { margin: 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color 160ms ease, padding-left 160ms ease;
}
.side-list a:hover { color: var(--brand-strong); padding-left: 6px; }
.side-list a[aria-current="page"] { color: var(--brand-strong); }
.side-list .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.side-contact { background: var(--ink); color: #d9cfc9; border-color: var(--edge); }
.side-contact h2 { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.side-contact p { font-size: 13.5px; margin: 0 0 12px; }
.side-contact .tel {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.side-contact .tel:hover { color: var(--brand); }
.side-contact .btn { width: 100%; justify-content: center; background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.side-contact .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  transition: background 160ms ease, color 160ms ease;
}
.pager a:hover { background: var(--ink); color: #fff; }
.pager .is-current { background: var(--brand); border-color: var(--brand-strong); color: #fff; }

/* ---------- 栏目中心页 ---------- */
.cat-block { margin-bottom: 48px; }
.cat-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--edge);
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.cat-block-head h2 { font-size: 24px; }
.cat-block-head .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- 文章详情 ---------- */
.article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-main { min-width: 0; }
.article-head { border-bottom: 2px solid var(--edge); padding-bottom: 24px; margin-bottom: 28px; }
.article-head h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.16; margin-bottom: 16px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.article-meta .cat { color: var(--brand-strong); font-weight: 700; }
.article-lead {
  font-size: 17px;
  color: var(--ink);
  border-left: 4px solid var(--brand);
  padding-left: 18px;
  margin: 0 0 28px;
  font-weight: 600;
}
.article-body { font-size: 16px; color: #3b312b; }
.article-body h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.article-body h3 { font-size: 18.5px; margin: 26px 0 10px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--surface);
  border: 2px solid var(--edge);
  border-left: 6px solid var(--brand);
}
.article-body blockquote p:last-child { margin: 0; }
.article-body .note {
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 32px;
}
.article-figure { margin: 28px 0; border: 2px solid var(--edge); background: #fff; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption {
  border-top: 2px solid var(--edge);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.article-foot {
  margin-top: 40px;
  border-top: 2px solid var(--edge);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.article-foot .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-foot .tags span {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: var(--radius);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.post-nav a {
  display: block;
  border: 2px solid var(--edge);
  padding: 16px 18px;
  background: #fff;
  transition: background 160ms ease, transform 160ms ease;
}
.post-nav a:hover { background: var(--brand-soft); transform: translateY(-2px); }
.post-nav .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.post-nav .t { font-weight: 800; font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.post-nav a.next { text-align: right; }

@media (max-width: 1000px) {
  .news-layout, .article { grid-template-columns: 1fr; gap: 34px; }
  .post-item-inner { grid-template-columns: 78px 1fr; }
  .post-thumb { display: none; }
}

@media (max-width: 640px) {
  .post-item-inner { grid-template-columns: 1fr; gap: 10px; }
  .post-date { border-left: 0; padding-left: 0; display: flex; align-items: baseline; gap: 8px; }
  .post-date .d { font-size: 16px; }
  .post-date .y { margin-top: 0; }
  .article-body h2 { font-size: 21px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 9px 10px; }
}

/* ---------- 补充：文章页与列表页细节 ---------- */
.page-band .article-meta { color: #b9aea7; margin-top: 14px; }
.page-band h1 { max-width: 26ch; }
.cat-block-head .link-more .n { font-family: var(--font-mono); font-size: 11.5px; margin-left: 6px; color: var(--muted); }
