/* =====================================================
   IC Markets 返佣网 · 内页样式（列表页 / 文章内容页）
   依赖：css/style.css（基础变量与组件）
   ===================================================== */

/* ---------- 阅读进度条 ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  z-index: 120; transition: width .1s linear;
}

/* ---------- 内页顶部横幅 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 132px 0 62px;
  background: radial-gradient(900px 420px at 78% -20%, #1c3f74 0%, transparent 60%),
              linear-gradient(160deg, #0a1730 0%, #0b1d3a 60%, #10294e 100%);
  color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(760px 400px at 30% 10%, #000 10%, transparent 70%);
}
.page-hero .container { position: relative; }
.crumb { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.crumb a:hover { color: var(--gold-2); }
.crumb span { margin: 0 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; margin-bottom: 12px; }
.page-hero p.lead { color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 640px; }

/* ---------- 列表页布局（单栏 · 通宽） ---------- */
.list-section { padding: 54px 0 84px; }
.list-layout {
  max-width: 1180px; margin: 0 auto;
}

/* 分类筛选 */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.filter-tabs button {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #46566c;
  transition: all .2s ease;
}
.filter-tabs button:hover { border-color: var(--gold); color: var(--navy); }
.filter-tabs button.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(11,29,58,.18);
}

/* 文章卡片 */
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-card {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.post-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: rgba(217,166,62,.5);
}
.post-card__thumb { position: relative; overflow: hidden; background: var(--navy); }
.post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; min-height: 190px;
  transition: transform .5s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.06); }
.post-card__body { padding: 22px 26px; display: flex; flex-direction: column; }
.post-card__meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 9px;
}
.post-cat {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: #fdf3dc; color: #8a6414; font-weight: 700; font-size: 12px;
}
.post-card h3 { font-size: 18.5px; line-height: 1.45; color: var(--navy); margin-bottom: 9px; }
.post-card h3 a:hover { color: #a97c14; }
.post-card p.excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__more {
  margin-top: auto; padding-top: 14px;
  font-size: 13.5px; font-weight: 700; color: #a97c14;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-card:hover .post-card__more { gap: 11px; }
.post-card__more::after { content: "→"; transition: inherit; }

/* 分页 */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 42px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 14px; font-weight: 600; color: #46566c;
  transition: all .2s ease;
}
.pagination a:hover { border-color: var(--gold); color: var(--navy); }
.pagination .current {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ---------- 文内目录（单栏内嵌） ---------- */
.toc-inline {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 12px;
  padding: 22px 26px; margin-bottom: 34px;
}
.toc-inline .toc-title {
  font-size: 15px; font-weight: 800; color: var(--navy);
  margin-bottom: 12px; letter-spacing: .02em;
}
.toc-inline ol {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 34px;
}
.toc-inline li { border: none; }
.toc-inline a {
  display: block; padding: 6px 0 6px 14px; font-size: 13.5px;
  color: #5c6b80; line-height: 1.6; position: relative;
}
.toc-inline a::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 5px; height: 5px; border-radius: 50%; background: #c3cddb;
  transition: background .2s;
}
.toc-inline a:hover { color: var(--navy); }
.toc-inline a:hover::before { background: var(--gold); }
.toc-inline a.active { color: #a97c14; font-weight: 700; }
.toc-inline a.active::before { background: var(--gold); }

/* =====================================================
   文章内容页
   ===================================================== */
.article-hero { padding: 132px 0 44px; }
.article-hero .crumb { margin-bottom: 16px; }
.article-hero h1 {
  font-size: clamp(25px, 3.4vw, 40px); line-height: 1.35; margin-bottom: 20px;
  max-width: 1180px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: 13px; color: rgba(255,255,255,.62);
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  max-width: 1180px;
}
.article-meta .am-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241a04; font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}

.article-section { padding: 46px 0 84px; }
.article-layout {
  max-width: 1180px; margin: 0 auto;
}

/* 正文排版：内容零 div / 零 class，样式全部由 article 结构选择器还原
   （目录、标签、作者框、广告位、上下篇各自带 class，不受影响） */
.article-layout article { font-size: 16px; line-height: 1.95; color: #33425a; }
.article-layout article > * + * { margin-top: 18px; }
.article-layout article > h2 {
  font-size: 23px; color: var(--navy); line-height: 1.5;
  margin-top: 44px; padding-left: 14px; position: relative;
}
.article-layout article > h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.article-layout article > h3 {
  font-size: 18.5px; color: var(--navy); margin-top: 30px;
}
.article-layout article > p { margin-top: 16px; }
.article-layout article strong { color: var(--navy); }
.article-layout article > p a,
.article-layout article > ul > li a,
.article-layout article > ol > li a {
  color: #a97c14; border-bottom: 1px solid rgba(217,166,62,.5);
}
.article-layout article > p a:hover,
.article-layout article > ul > li a:hover,
.article-layout article > ol > li a:hover { border-bottom-color: var(--gold); }

.article-layout article > ul,
.article-layout article > ol { padding-left: 4px; margin-top: 14px; }
.article-layout article > ul > li { position: relative; padding-left: 24px; margin: 9px 0; }
.article-layout article > ul > li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(217,166,62,.16);
}
.article-layout article > ol { counter-reset: n; }
.article-layout article > ol > li { position: relative; padding-left: 30px; margin: 9px 0; counter-increment: n; }
.article-layout article > ol > li::before {
  content: counter(n); position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.article-layout article > figure { margin-top: 28px; }
.article-layout article > figure img {
  border-radius: 12px; width: 100%; border: 1px solid var(--line);
}
.article-layout article > figure figcaption {
  font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px;
}

/* 引用 / 提示框 / 表格 */
.article-layout article > blockquote {
  margin: 26px 0; padding: 20px 26px;
  background: var(--bg-alt); border-left: 4px solid var(--navy);
  border-radius: 0 12px 12px 0; color: #33425a; font-size: 15.5px;
}
.callout {
  margin: 26px 0; padding: 18px 24px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.85;
}
.callout strong { display: block; margin-bottom: 4px; }
.callout--tip { background: #fff8ea; border: 1px solid #f0dcab; color: #6b5313; }
.callout--warn { background: #fdf0ee; border: 1px solid #f3cfc7; color: #8a3a2a; }

.article-layout article > table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; background: #fff;
  border: 2px solid var(--navy); border-radius: 8px; overflow: hidden;
}
.article-layout article > table thead th {
  background: var(--navy); color: #fff; padding: 12px 14px;
  border: 1px solid #24406e; text-align: left; font-size: 14px; white-space: nowrap;
}
.article-layout article > table tbody td { padding: 11px 14px; border: 1px solid #cfd8e6; }
.article-layout article > table tbody tr:nth-child(even) { background: #f7f9fd; }

/* 文章底部 */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.article-tags span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.article-tags a {
  font-size: 12.5px; padding: 5px 13px; border-radius: 999px;
  background: var(--bg-alt); color: #5c6b80;
}
.article-tags a:hover { background: #fdf3dc; color: #8a6414; }

.author-box {
  display: flex; gap: 18px; align-items: center; margin-top: 28px;
  background: var(--bg-alt); border-radius: 14px; padding: 22px 26px;
}
.author-box .avatar-lg {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #241a04; font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
}
.author-box h4 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.author-box p { font-size: 13.5px; color: var(--muted); }

.inline-cta {
  position: relative; overflow: hidden;
  margin-top: 40px; padding: 26px 34px; border-radius: 16px;
  background: radial-gradient(620px 300px at 88% -10%, #1c3f74, transparent 62%),
              linear-gradient(160deg, #0b1d3a, #122b52);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  box-shadow: 0 14px 32px rgba(11,29,58,.16);
}
.inline-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(600px 300px at 85% 0%, #000 10%, transparent 70%);
}
.ic-copy { position: relative; z-index: 1; flex: 1 1 560px; }
.ic-title {
  font-size: clamp(19px, 1.7vw, 24px);   /* 大标题 */
  line-height: 1.45; font-weight: 800; margin-bottom: 5px;
}
.ic-title .ic-gold {
  background: linear-gradient(120deg, #f7dc9a, #d9a63e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ic-sub { font-size: 13.5px; color: rgba(255,255,255,.66); line-height: 1.7; }
.inline-cta .btn { position: relative; z-index: 1; }
/* 列表页顶部广告位：去掉上边距，改为下边距 */
.inline-cta--top { margin-top: 0; margin-bottom: 34px; }

.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px;
}
.prev-next a {
  display: block; padding: 18px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.prev-next a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.prev-next .pn-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.prev-next .pn-title { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.55; }
.prev-next a.next { text-align: right; }

/* 相关文章 */
.related { padding: 62px 0 78px; background: var(--bg-alt); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rel-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rel-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.rel-card__body { padding: 18px 20px 22px; }
.rel-card .post-cat { margin-bottom: 10px; }
.rel-card h4 { font-size: 15.5px; line-height: 1.55; color: var(--navy); }
.rel-card h4 a:hover { color: #a97c14; }
.rel-card .date { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 首页资讯模块（四列） */
.home-news-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1024px) {
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .home-news-grid { grid-template-columns: 1fr; }
}

/* 内页响应式 */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .toc-inline ol { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__thumb img { min-height: 170px; aspect-ratio: 16/9; }
  .post-card__body { padding: 18px 20px 20px; }
  .article-hero { padding: 112px 0 34px; }
  .page-hero { padding: 108px 0 46px; }
  .related-grid { grid-template-columns: 1fr; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next a.next { text-align: left; }
  .inline-cta { padding: 24px 22px; }
  .article-layout article { font-size: 15.5px; }
}


/* ===== PbootCMS 适配补充 ===== */
.filter-tabs a {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #46566c;
  transition: all .2s ease; text-decoration: none;
}
.filter-tabs a:hover { border-color: var(--gold); color: var(--navy); }
.filter-tabs a.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(11,29,58,.18);
}
.pagination a.active,
.pagination .page-num-current,
.pagination .current {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.pagination a.page-num-current { background: var(--navy); color: #fff; }
