@charset "utf-8";
/* ==========================================================================
   pc.css —— PC 端样式（首页 / 列表页 / 文章页）
   1. 顶部  2. 头部  3. 首页  4. 列表页  5. 文章页  6. 页脚
   ========================================================================== */

/* ---------- 1. 顶部通栏 ---------- */
.topbar { height: 34px; background: #fff; border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-2); }
.topbar__inner { display: flex; align-items: center; height: 34px; }
.topbar__links { display: flex; align-items: center; margin-left: auto; gap: 0; }
.topbar__links li { position: relative; padding: 0 12px; }
.topbar__links li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: var(--c-border-2);
}
.topbar__links li:last-child { padding-right: 0; }

/* ---------- 2. 头部（Logo + 下拉导航） ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--c-primary), #4f8bff);
  display: flex; align-items: center; justify-content: center;
}
.logo__name { font-size: 22px; font-weight: 700; color: var(--c-title); letter-spacing: 1px; }

/* ---- 主导航：一级栏目 + 鼠标悬停下拉面板 ---- */
.nav { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; height: 100%; }
.nav > li { height: 100%; position: relative; }
.nav > li > a {
  display: flex; align-items: center; height: 100%; padding: 0 11px;
  font-size: 15px; color: var(--c-title); position: relative; white-space: nowrap;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transition: transform 0.22s;
}
.nav > li:hover > a::after, .nav .is-active > a::after { transform: scaleX(1); }
.nav > li:hover > a { color: var(--c-primary); }
.nav .is-active > a { color: var(--c-primary); font-weight: 600; }

/* 下拉箭头 */
.nav-caret {
  width: 0; height: 0; margin-left: 5px; margin-top: 3px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}
.nav > li:hover > a .nav-caret { transform: rotate(180deg); opacity: 1; }

/* 下拉面板：默认左对齐，宽度自适应 */
.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 60;
  padding: 12px; min-width: 220px;
  background: #fff; border-top: 2px solid var(--c-primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav > li:hover > .nav-drop,
.nav > li:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }

/* 面板右对齐（靠页面右侧的栏目用，避免超出屏幕） */
.nav-drop--right { left: auto; right: 0; }

.nav-drop__title { padding: 2px 12px 10px; font-size: 12px; color: var(--c-text-3); }
.nav-drop__list { display: grid; grid-template-columns: repeat(2, minmax(104px, 1fr)); gap: 2px; }
.nav-drop__list a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  font-size: 14px; color: var(--c-text); white-space: nowrap;
}
.nav-drop__list a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.nav-drop__list a.is-hot::after { content: "HOT"; margin-left: 6px; font-size: 10px; color: var(--c-accent); }

/* 超宽「全部分类」面板：多列分组 */
.nav-drop--mega { width: 780px; left: auto; right: 0; padding: 20px 22px 16px; }
.nav-drop--mega .nav-drop__body { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 22px; }
.nav-drop__group h6 {
  padding-bottom: 8px; margin-bottom: 8px; font-size: 13px; color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
}
.nav-drop__group a {
  display: block; padding: 7px 10px; margin: 0 -10px; border-radius: var(--radius);
  font-size: 14px; color: var(--c-text); white-space: nowrap;
}
.nav-drop__group a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.nav-drop__foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--c-border);
}
.nav-drop__foot .label { font-size: 13px; color: var(--c-text-3); }
.nav-drop__foot a { padding: 4px 12px; border-radius: 999px; background: #f5f6f8; font-size: 13px; color: var(--c-text-2); }
.nav-drop__foot a:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* ---------- 3. 首页 ---------- */
.main { padding: 20px 0 40px; }

/* 3.1 头条区：左大图 + 右列表 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.hero__main { background: #fff; border-radius: var(--radius-lg); padding: 16px; }
.hero__thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #f0f2f5; }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero__main:hover .hero__thumb img { transform: scale(1.03); }
.hero__title { margin-top: 14px; font-size: 24px; line-height: 1.4; }
.hero__desc { margin-top: 8px; font-size: 14px; color: var(--c-text-2); line-height: 1.75; }
.hero__meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--c-text-3); }

.hero__side { background: #fff; border-radius: var(--radius-lg); padding: 6px 16px 10px; display: flex; flex-direction: column; }
.hero__side > li { flex: 1; display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--c-border); }
.hero__side > li:last-child { border-bottom: 0; }
.hero__side .txt { flex: 1; min-width: 0; }
.hero__side .txt h4 { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--c-title); }
.hero__side .txt p { margin-top: 6px; font-size: 12px; color: var(--c-text-3); }
.hero__side .thumb { flex: 0 0 96px; width: 96px; height: 68px; border-radius: var(--radius); overflow: hidden; background: #f0f2f5; }
.hero__side .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 3.2 主体两栏布局 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 24px; }
.layout__main > .block { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.layout__side { min-width: 0; }

/* 板块内的 Tab */
.tabs { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.tabs button {
  padding: 3px 12px; border-radius: 999px; font-size: 13px; color: var(--c-text-2);
}
.tabs button.is-active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 500; }

/* 两个并排板块 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .block { background: #fff; border-radius: var(--radius-lg); padding: 20px; margin-bottom: 0; }

/* 订阅卡 */
.subscribe { background: linear-gradient(135deg, #1f3d7a, #2563eb); color: #fff; border-radius: var(--radius-lg); padding: 20px; }
.subscribe h4 { color: #fff; font-size: 16px; }
.subscribe p { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-top: 6px; }
.subscribe__form { display: flex; margin-top: 14px; height: 38px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.16); }
.subscribe__form input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; color: #fff; font-size: 13px; }
.subscribe__form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.subscribe__form button { padding: 0 16px; background: #fff; color: var(--c-primary); font-size: 13px; font-weight: 600; }

/* ---------- 4. 列表页 ---------- */
.crumbbar { padding: 14px 0; }
.chanhead {
  background: #fff; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 20px;
}
.chanhead__icon {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px;
  background: var(--c-primary-light); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
}
.chanhead h1 { font-size: 24px; }
.chanhead p { margin-top: 6px; font-size: 13px; color: var(--c-text-2); }
.chanhead__stat { margin-left: auto; text-align: right; font-size: 13px; color: var(--c-text-3); }
.chanhead__stat b { display: block; font-size: 22px; color: var(--c-primary); font-weight: 600; }

.toolbar {
  display: flex; align-items: center; gap: 8px; padding: 0 0 14px;
  border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-2);
}
.toolbar a { padding: 3px 10px; border-radius: var(--radius-sm); }
.toolbar a.is-active { color: var(--c-primary); background: var(--c-primary-light); }
.toolbar__right { margin-left: auto; }

/* 列表页条目的图更大一些 */
.listpage .news-item__thumb { flex: 0 0 220px; width: 220px; height: 140px; }
.listpage .news-item__title { font-size: 18px; }

/* ---------- 5. 文章页 ---------- */
.article { background: #fff; border-radius: var(--radius-lg); padding: 32px 40px 40px; }
.article__title { font-size: 30px; line-height: 1.45; letter-spacing: 0.2px; }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border);
  font-size: 13px; color: var(--c-text-3);
}
.article__meta .tag { vertical-align: 1px; }
.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-border-2); }

/* 正文排版 */
.article__body { padding-top: 24px; font-size: 16px; line-height: 1.95; color: #2b3444; }
.article__body p { margin-bottom: 20px; }
.article__body h2 {
  position: relative; margin: 32px 0 16px; padding-left: 12px; font-size: 20px;
}
.article__body h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--c-primary);
}
.article__body h3 { margin: 24px 0 12px; font-size: 17px; }
.article__body strong { color: var(--c-title); font-weight: 600; }
.article__body figure { margin: 24px 0; }
.article__body figure img { width: 100%; border-radius: var(--radius); background: #f0f2f5; }
.article__body figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--c-text-3); }
.article__body blockquote {
  margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--c-primary);
  background: #f8faff; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px; color: var(--c-text-2);
}
.article__body ul { margin: 0 0 20px; padding-left: 0; }
.article__body ul li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.article__body ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary); opacity: .55;
}
.article__body .adbox { height: 88px; margin: 28px 0; }

/* 版权声明 */
.copyright {
  margin-top: 28px; padding: 14px 16px; border-radius: var(--radius);
  background: #fafbfc; font-size: 13px; line-height: 1.8; color: var(--c-text-3);
}

/* 3.x 作者（发布企业）信息卡 */
.authorcard { background: #fff; border-radius: var(--radius-lg); padding: 24px 40px 26px; margin-top: 20px; }
.authorcard__hd { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.authorcard__logo {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary), #4f8bff);
  display: flex; align-items: center; justify-content: center;
}
.authorcard__logo span { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: 0; }
.authorcard__logo img { width: 100%; height: 100%; object-fit: cover; }
.authorcard__base { min-width: 0; }
.authorcard__name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.authorcard__name a { color: var(--c-title); }
.authorcard__name a:hover { color: var(--c-primary); }
.authorcard__verified {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
  border-radius: 999px; background: var(--c-primary-light);
  color: var(--c-primary); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.authorcard__loc { margin-top: 4px; font-size: 13px; color: var(--c-text-3); }
.authorcard__btn { margin-left: auto; flex: 0 0 auto; }
.authorcard__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; padding: 16px 0 2px; }
.authorcard__info dt { font-size: 12px; color: var(--c-text-3); margin-bottom: 4px; }
.authorcard__info dd { font-size: 14px; color: var(--c-title); }
.authorcard__row { display: flex; align-items: flex-start; margin-top: 16px; }
.authorcard__label { flex: 0 0 64px; padding-top: 3px; font-size: 12px; color: var(--c-text-3); }
.authorcard__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.authorcard__tags a { padding: 4px 12px; border-radius: 999px; background: #f5f6f8; font-size: 13px; color: var(--c-text-2); }
.authorcard__tags a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.authorcard__certs { display: flex; flex-wrap: wrap; gap: 8px; }
.authorcard__certs span {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
  border-radius: 999px; background: #eefaf2; color: #0a8f4d; font-size: 13px;
}
/* <992px：信息三列变一列，头部按钮隐藏换行 */
@media (max-width: 992px) {
  .authorcard { padding: 20px 24px; }
  .authorcard__info { grid-template-columns: 1fr; }
  .authorcard__btn { display: none; }
}

/* 上一篇 / 下一篇 */
.pager { display: flex; gap: 20px; margin-top: 20px; }
.pager a {
  flex: 1; min-width: 0; padding: 16px 18px; background: #fff;
  border-radius: var(--radius-lg); font-size: 14px; color: var(--c-text-2);
  display: flex; gap: 8px; transition: all .2s;
}
.pager a:hover { color: var(--c-primary); box-shadow: var(--shadow); }
.pager a span { flex: 0 0 auto; color: var(--c-text-3); }
.pager a b { font-weight: 400; color: var(--c-title); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pager a:hover b { color: var(--c-primary); }
.pager a:last-child { justify-content: flex-end; }

/* 相关阅读 */
.related { margin-top: 20px; background: #fff; border-radius: var(--radius-lg); padding: 20px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.related__item .thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #f0f2f5; }
.related__item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related__item h4 { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.55; }
.related__item p { margin-top: 6px; font-size: 12px; color: var(--c-text-3); }

/* 正文侧栏：同栏目文章 */
.sidelist > li { padding: 12px 0; border-bottom: 1px dashed var(--c-border); }
.sidelist > li:last-child { border-bottom: 0; }
.sidelist h4 { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--c-title); }
.sidelist p { margin-top: 6px; font-size: 12px; color: var(--c-text-3); }

/* ---------- 6. 页脚 ---------- */
.footer { margin-top: 20px; background: #1c2434; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.footer__main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 44px 16px 36px; }
.footer__brand .logo__name { color: #fff; }
.footer__brand p { margin-top: 14px; line-height: 1.9; }
.footer__col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__col li { margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
.footer__bottom .placeholder { margin-left: auto; color: rgba(255, 255, 255, 0.42); }

/* ---------- 7. 响应式断点（统一放文件末尾，确保覆盖上方基础规则） ---------- */
/* <1240px：压缩栏目间距与下拉面板宽度，保证一级栏目一行放得下 */
@media (max-width: 1240px) {
  .nav > li > a { padding: 0 9px; }
  .nav > li > a::after { left: 9px; right: 9px; }
  .nav-drop--mega { width: 720px; }
}
/* <940px：把两个纯链接栏目收进「全部分类」，避免一级导航换行 */
@media (max-width: 940px) {
  .nav > li.nav-hide-md { display: none; }
}
