/* news.css — 资讯（文章）与列表页样式
 * 与主站视觉一致：主色 #ff6910，正文色 #1f2328
 * 该文件同时供 news/index.html（列表）与 news/<slug>.html（文章）使用
 * 2026-10-15
 */

/* ============ 通用容器 ============ */
.news-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.news-crumb {
  background: #f7f8fa;
  border-bottom: 1px solid #e6e8eb;
  font-size: 13px;
  color: #6b7280;
}
.news-crumb .news-wrap {
  padding: 12px 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news-crumb a {
  color: #6b7280;
  text-decoration: none;
}
.news-crumb a:hover {
  color: #ff6910;
}
.news-crumb .sep {
  margin: 0 6px;
  color: #c4c9d1;
}

/* ============ 列表页 ============ */
.news-hero {
  background: linear-gradient(135deg, #fff7f1 0%, #ffffff 60%);
  border-bottom: 1px solid #f0f1f3;
  padding: 46px 0 38px;
}
.news-hero h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.news-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #5b6472;
  max-width: 760px;
  margin: 0;
}
.news-hero .news-stat {
  margin-top: 16px;
  font-size: 13px;
  color: #98a1af;
}
.news-hero .news-stat b {
  color: #ff6910;
  font-weight: 700;
}

.news-filter {
  padding: 22px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.news-filter a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  background: #fff;
  transition: all .2s;
}
.news-filter a:hover {
  border-color: #ff6910;
  color: #ff6910;
}
.news-filter a.on {
  background: #ff6910;
  border-color: #ff6910;
  color: #fff;
  font-weight: 600;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 40px;
}

.news-card {
  border: 1px solid #eceef1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.news-card:hover {
  box-shadow: 0 10px 26px rgba(31, 35, 40, .09);
  transform: translateY(-3px);
  border-color: #ffd9bd;
}
.news-card .thumb {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #f4f5f7;
}
.news-card .thumb.plain {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff1e6 0%, #fff8f3 55%, #ffffff 100%);
  border-bottom: 1px solid #f6efe9;
}
.news-card .thumb.plain i {
  font-style: normal;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff6910;
  opacity: .82;
}
.news-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 4px;
  background: #fff2e8;
  color: #d9600a;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: #1f2328;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card h3 a {
  color: inherit;
  text-decoration: none;
}
.news-card:hover h3 a {
  color: #ff6910;
}
.news-card .sum {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .meta {
  margin-top: auto;
  font-size: 12.5px;
  color: #9aa2ae;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #eef0f3;
  padding-top: 12px;
}

.news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0 56px;
  flex-wrap: wrap;
}
.news-pager a,
.news-pager span {
  min-width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  padding: 0 12px;
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  background: #fff;
}
.news-pager a:hover {
  border-color: #ff6910;
  color: #ff6910;
}
.news-pager .cur {
  background: #ff6910;
  border-color: #ff6910;
  color: #fff;
  font-weight: 600;
}
.news-pager .off {
  color: #c4c9d1;
  background: #fafbfc;
}

.news-empty {
  padding: 70px 0;
  text-align: center;
  color: #98a1af;
  font-size: 15px;
}

/* ============ 文章页 ============ */
.news-article {
  padding: 34px 0 64px;
}
.news-article .inner {
  max-width: 830px;
  margin: 0 auto;
}

.news-article .a-cat {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 4px;
  background: #fff2e8;
  color: #d9600a;
  margin-bottom: 16px;
}
.news-article h1 {
  font-size: 30px;
  line-height: 1.5;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.news-article .a-meta {
  font-size: 13px;
  color: #9aa2ae;
  padding-bottom: 20px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.news-article .a-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-article .a-lead {
  background: #f8f9fb;
  border-left: 4px solid #ff6910;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.9;
  color: #4b5563;
  margin: 0 0 32px;
}

.news-article .a-body {
  font-size: 16px;
  line-height: 2;
  color: #333a45;
}
.news-article .a-body h2 {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 700;
  color: #1f2328;
  margin: 42px 0 16px;
  padding-left: 13px;
  border-left: 4px solid #ff6910;
}
.news-article .a-body h3 {
  font-size: 17.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #1f2328;
  margin: 30px 0 12px;
}
.news-article .a-body p {
  margin: 0 0 18px;
}
.news-article .a-body ul,
.news-article .a-body ol {
  margin: 0 0 20px;
  padding-left: 26px;
}
.news-article .a-body li {
  margin-bottom: 9px;
  line-height: 1.95;
}
.news-article .a-body strong {
  color: #1f2328;
  font-weight: 600;
}
.news-article .a-body a {
  color: #d9600a;
  border-bottom: 1px solid #ffd9bd;
  text-decoration: none;
}
.news-article .a-body a:hover {
  color: #ff6910;
  border-bottom-color: #ff6910;
}
.news-article .a-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0 20px;
}
.news-article .a-body blockquote {
  margin: 0 0 20px;
  padding: 14px 20px;
  background: #f8f9fb;
  border-left: 4px solid #e3e6ea;
  color: #5b6472;
  font-size: 15px;
}
.news-article .a-body code {
  background: #f4f5f7;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-family: Consolas, Monaco, monospace;
}
.news-article .a-body pre {
  background: #1f2328;
  color: #e8eaed;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 20px;
  line-height: 1.7;
}
.news-article .a-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.news-article .a-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
}
.news-article .a-body th,
.news-article .a-body td {
  border: 1px solid #e6e8eb;
  padding: 11px 14px;
  text-align: left;
  line-height: 1.8;
}
.news-article .a-body th {
  background: #f8f9fb;
  font-weight: 600;
  color: #1f2328;
}
.news-article .a-body hr {
  border: 0;
  border-top: 1px solid #eef0f3;
  margin: 34px 0;
}

/* 文末转化区 */
.news-cta {
  margin: 40px 0 0;
  padding: 26px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7f1 0%, #fffdfb 100%);
  border: 1px solid #ffe4d1;
}
.news-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 10px;
}
.news-cta p {
  font-size: 14.5px;
  line-height: 1.9;
  color: #5b6472;
  margin: 0 0 16px;
}
.news-cta .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.news-cta a.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: #ff6910;
  color: #fff;
}
.news-cta a.btn:hover {
  background: #e85d09;
}
.news-cta a.btn.ghost {
  background: #fff;
  color: #ff6910;
  border: 1px solid #ff6910;
}
.news-cta a.btn.ghost:hover {
  background: #fff7f1;
}

/* 相关阅读 */
.news-related {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid #eef0f3;
}
.news-related h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 16px;
}
.news-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-related li {
  padding: 11px 0;
  border-bottom: 1px dashed #eef0f3;
  font-size: 15px;
  line-height: 1.7;
}
.news-related li:last-child {
  border-bottom: 0;
}
.news-related a {
  color: #333a45;
  text-decoration: none;
}
.news-related a:hover {
  color: #ff6910;
}
.news-related .d {
  color: #9aa2ae;
  font-size: 13px;
  margin-left: 8px;
}

.news-aside {
  margin-top: 34px;
  padding: 18px 20px;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #7b8492;
}

/* 免责声明（财税/法律类内容必须带） */
.news-disclaim {
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: #98a1af;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .news-wrap {
    padding: 0 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-hero {
    padding: 30px 0 26px;
  }
  .news-hero h1 {
    font-size: 22px;
  }
  .news-card .thumb {
    height: 190px;
  }
  .news-article {
    padding: 22px 0 46px;
  }
  .news-article h1 {
    font-size: 22px;
  }
  .news-article .a-body {
    font-size: 15.5px;
    line-height: 1.95;
  }
  .news-article .a-body h2 {
    font-size: 19px;
    margin-top: 32px;
  }
  .news-cta {
    padding: 20px 18px;
  }
}
