/* ==========================================================================
   章动咨询 · 新闻资讯（列表 + 详情）
   设计 token 继承自 index.css（--gold / --brown / --cream / --muted / --border）
   ========================================================================== */

/* ---------- 内页 Hero（列表页） ---------- */
.page-hero {
  position: relative;
  padding: 168px 40px 84px;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 70% at 50% -12%, rgba(200, 150, 62, 0.26), transparent 62%),
    linear-gradient(180deg, #2c1810 0%, #241109 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 150, 62, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero .ph-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.55);
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.breadcrumb a {
  color: rgba(250, 248, 245, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }
.page-hero h1 {
  font-family: 'Noto Serif SC', 'Noto Sans SC', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 1px;
}
.page-hero h1 .gradient-text {
  background: linear-gradient(111deg, var(--gold) 5%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-hero .ph-sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250, 248, 245, 0.62);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 筛选工具栏 ---------- */
.news-toolbar {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.news-toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--gold); }
.filter-tab.active {
  color: var(--cream);
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.28);
}
.news-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 8px 7px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.news-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.12);
}
.news-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--brown);
  width: 180px;
}
.news-search input::placeholder { color: rgba(107, 93, 82, 0.55); }
.news-search button {
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.news-search button:hover { background: var(--gold-dark); }

/* 标签药丸 */
.tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  padding: 5px 14px;
  background: rgba(200, 150, 62, 0.1);
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.tag-pill--solid { background: var(--gold); color: var(--cream); }

/* ---------- 头条文章（缩略图 + 标题） ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07); }
.featured-cover { position: relative; min-height: 320px; overflow: hidden; }
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.featured-card:hover .featured-cover img { transform: scale(1.04); }
.featured-cover .fc-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
}
.featured-body { padding: 44px 40px; display: flex; flex-direction: column; }
.featured-body .fb-tag { align-self: flex-start; margin-bottom: 16px; }
.featured-body h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brown);
  margin-bottom: 14px;
  transition: color 0.2s;
}
.featured-card:hover .featured-body h2 { color: var(--gold); }
.featured-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.fb-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.fb-meta .read-more {
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.fb-meta .read-more:hover { text-decoration: underline; }

/* ---------- 文章网格（缩略图 + 标题） ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06); }
.news-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-cover .nc-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}
.news-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--brown);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.news-card:hover .news-card-body h3 { color: var(--gold); }
.nc-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.nc-meta .nc-more {
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.28);
}
.pagination .ellipsis { border: none; background: transparent; }

/* ==========================================================================
   文章详情 —— 普通文章展示（方便后台富文本编辑复现）
   ========================================================================== */
/* 文章标题区（深棕 banner，左对齐并与正文左列对齐） */
.article-head {
  position: relative;
  padding: 168px 40px 76px;
  background:
    radial-gradient(ellipse 80% 70% at 50% -12%, rgba(200, 150, 62, 0.26), transparent 62%),
    linear-gradient(180deg, #2c1810 0%, #241109 100%);
  overflow: hidden;
}
.article-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(200, 150, 62, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.article-head-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
}
.article-head-inner .breadcrumb,
.article-head-inner .article-title,
.article-head-inner .article-meta { grid-column: 1; }
.breadcrumb--light { color: rgba(250, 248, 245, 0.55); margin-bottom: 20px; }
.breadcrumb--light a { color: rgba(250, 248, 245, 0.7); }
.breadcrumb--light a:hover { color: var(--gold); }
.breadcrumb--light .current { color: var(--gold); }
.article-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 22px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(250, 248, 245, 0.62);
}
.article-meta .sep { opacity: 0.35; }

.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.article-main { max-width: 760px; }

/* 正文 —— 仅针对富文本常见标签做简洁排版，不依赖特殊 class */
.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: #4a3f37;
}
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.45;
  margin: 34px 0 14px;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.5;
  margin: 28px 0 10px;
}
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 22px 0;
}
.article-body a { color: var(--gold); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--brown); font-weight: 600; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  border-radius: 0 8px 8px 0;
}

/* 上一篇 / 下一篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.article-nav a:hover { border-color: var(--gold); transform: translateY(-2px); }
.article-nav a.next { text-align: right; }
.article-nav .an-label { font-size: 12px; color: var(--muted); }
.article-nav .an-title { font-size: 15px; font-weight: 600; color: var(--brown); }

/* 侧栏 */
.article-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
}
.side-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.side-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.side-list li { display: flex; gap: 12px; align-items: flex-start; }
.side-list .sl-num {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.4;
  flex-shrink: 0;
}
.side-list a {
  font-size: 14px;
  line-height: 1.5;
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s;
}
.side-list a:hover { color: var(--gold); }
.side-cta {
  background: linear-gradient(150deg, #2c1810 0%, #4a2c16 100%);
  border: none;
  color: var(--cream);
  text-align: center;
  padding: 30px 24px;
}
.side-cta h4 { border-bottom: none; color: var(--cream); margin-bottom: 10px; }
.side-cta p { font-size: 13.5px; line-height: 1.6; color: rgba(250, 248, 245, 0.65); margin-bottom: 18px; }
.side-cta .btn { width: 100%; }

/* 相关文章 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 240px; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-head-inner { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { padding: 140px 20px 64px; }
  .page-hero h1 { font-size: 34px; }
  .news-toolbar-inner { padding: 12px 20px; }
  .news-search input { width: 120px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-head { padding: 130px 20px 36px; }
  .article-title { font-size: 26px; }
  .article-wrap { padding: 36px 20px 24px; }
  .article-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
