/* ===== 站群前台通用样式 ===== */
:root {
  --c: #c62828;
  --c2: #1f2937;
  --bg: #f4f5f7;
  --line: #e9ebef;
  --text: #1a1d21;
  --muted: #7b8290;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c); }
img { max-width: 100%; display: block; border: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 1440px; max-width: calc(100% - 32px); margin: 0 auto; }

/* 顶栏 */
.topbar { background: var(--c2); color: rgba(255,255,255,.72); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar a { color: rgba(255,255,255,.72); }
.topbar a:hover { color: #fff; }
.topbar .tb-right a { margin-left: 16px; }

/* 头部 */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 22px; height: 96px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 48px; height: 48px; border-radius: 12px; background: var(--c);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 23px; letter-spacing: -.5px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 25px; letter-spacing: -.3px; }
.logo-text span { font-size: 13px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.search { margin-left: auto; display: flex; align-items: center; background: #f4f5f7; border-radius: 26px; padding: 4px 4px 4px 20px; width: 380px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; height: 40px; color: var(--text); }
.search button {
  border: 0; background: var(--c); color: #fff; height: 40px; padding: 0 24px;
  border-radius: 22px; cursor: pointer; font-size: 15px;
}
.search button:hover { filter: brightness(1.08); }

/* 导航 */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
/* 栏目多，弹性均分撑满整行 */
.nav-scroll { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
.nav a {
  flex: 1 1 auto; padding: 15px 10px; font-size: 16px; color: #40464f;
  position: relative; white-space: nowrap; text-align: center;
}
.nav a:hover { color: var(--c); }
.nav a.active { color: var(--c); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 3px; background: var(--c); border-radius: 2px;
}

/* 布局 */
.main { padding: 24px 0 48px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px 24px; }
.panel + .panel { margin-top: 18px; }

/* 板块标题 */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.sec-title::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--c); }
.sec-more { font-size: 13.5px; color: var(--muted); }
.sec-more:hover { color: var(--c); }

/* 头条 */
.hero { display: grid; grid-template-columns: 1.7fr minmax(0, 1fr); gap: 26px; background: #fff; border-radius: var(--radius); padding: 22px 24px; }
.hero-main { position: relative; }
.hero-main .thumb { aspect-ratio: 2; border-radius: 8px; overflow: hidden; background: #eef0f3; }
.hero-main .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-main:hover .thumb img { transform: scale(1.03); }
.hero-main h2 { font-size: 30px; line-height: 1.4; margin: 16px 0 9px; letter-spacing: -.5px; }
.hero-main p { margin: 0; color: var(--muted); font-size: 15.5px; }
.hero-sub { display: flex; flex-direction: column; gap: 18px; }
.hero-sub .thumb { width: 150px; height: 98px; border-radius: 8px; overflow: hidden; background: #eef0f3; flex: 0 0 auto; }
.hero-sub .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub li { display: flex; gap: 12px; }
.hero-sub h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.5; font-weight: 600; }
.hero-sub .meta { font-size: 13px; color: var(--muted); }

/* 资讯列表 */
.news-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list .thumb { width: 200px; height: 126px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #eef0f3; }
.news-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-list h3 { margin: 2px 0 8px; font-size: 18.5px; line-height: 1.5; font-weight: 600; }
.news-list p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list .meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: #9aa1ad; display: flex; gap: 14px; }
.news-list li.plain { padding: 12px 0; }
.news-list li.plain h3 { font-size: 17px; margin: 0; }
.badge { display: inline-block; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.badge.rec { color: #b7791f; background: #fdf6e7; }

/* 侧栏 */
.side-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.side-title::before { content: ""; width: 3px; height: 16px; background: var(--c); border-radius: 2px; }
.rank li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; line-height: 1.55; }
.rank li:last-child { border-bottom: 0; }
.rank .no { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 5px; background: #f0f1f3; color: #9aa1ad; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.rank li:nth-child(1) .no { background: var(--c); color: #fff; }
.rank li:nth-child(2) .no { background: color-mix(in srgb, var(--c) 62%, #fff); color: #fff; }
.rank li:nth-child(3) .no { background: color-mix(in srgb, var(--c) 38%, #fff); color: #fff; }
.rank a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tags a { font-size: 14px; padding: 6px 14px; background: #f4f5f7; border-radius: 20px; color: #4b5563; }
.cat-tags a:hover { background: var(--c); color: #fff; }

/* 栏目板块 */
.block { margin-top: 18px; }
.block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.block-grid .item { display: flex; gap: 14px; }
.block-grid .item .thumb { width: 142px; height: 94px; border-radius: 7px; overflow: hidden; flex: 0 0 auto; background: #eef0f3; }
.block-grid .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.block-grid h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.block-grid .meta { font-size: 13px; color: #9aa1ad; }

/* 面包屑 */
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--c); }
.crumb span { margin: 0 6px; color: #c8ccd2; }

/* 文章详情 */
.article { background: #fff; border-radius: var(--radius); padding: 28px 38px 38px; }
/* 版心变宽后限制正文行宽，保证中文阅读节奏 */
.article > * { max-width: 860px; }
.article h1 { font-size: 33px; line-height: 1.45; margin: 0 0 16px; letter-spacing: -.6px; }
.article .meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.article .summary { background: #f7f8fa; border-left: 3px solid var(--c); padding: 13px 18px; border-radius: 0 8px 8px 0; color: #4b5563; font-size: 15.5px; margin-bottom: 22px; }
.article-body { font-size: 17.5px; line-height: 2; color: #24282e; }
.article-body p { margin: 0 0 20px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px auto; }
.article-body h2, .article-body h3 { margin: 28px 0 14px; line-height: 1.5; }
.article-body blockquote { margin: 20px 0; padding: 12px 18px; background: #f7f8fa; border-left: 3px solid #d5d8dd; color: #555; }
.article-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { font-size: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); padding: 5px 14px; border-radius: 20px; }
.pn { display: grid; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.pn a { color: #4b5563; }
.pn a:hover { color: var(--c); }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.pager-item { min-width: 40px; height: 40px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; color: #4b5563; }
.pager-item:hover { border-color: var(--c); color: var(--c); }
.pager-item.active { background: var(--c); border-color: var(--c); color: #fff; }
.pager-dot { align-self: center; color: #b6bcc6; }

/* 列表页头部 */
.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.list-head h1 { font-size: 24px; margin: 0; }
.list-head .count { font-size: 13.5px; color: var(--muted); }

/* 底部 */
.footer { background: var(--c2); color: rgba(255,255,255,.6); margin-top: 30px; padding: 36px 0 28px; font-size: 14px; }
.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; line-height: 1.8; }
.footer-bottom .c { color: rgba(255,255,255,.86); }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 14.5px; }

/* 搜索框（页内） */
.search-page form { display: flex; gap: 10px; margin-bottom: 18px; }
.search-page input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 15.5px; outline: none; }
.search-page input:focus { border-color: var(--c); }
.search-page button { height: 46px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--c); color: #fff; cursor: pointer; font-size: 15.5px; }

/* 单页：关于我们 / 联系方式 */
p.pg-lead { margin: 0 0 22px; padding: 14px 18px; font-size: 17px; color: #3f4650; background: #f8f9fb; border-left: 3px solid var(--c); border-radius: 0 8px 8px 0; }
.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.pg-stat { padding: 16px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pg-stat b { display: block; font-size: 22px; line-height: 1.3; color: var(--c); }
.pg-stat span { font-size: 13px; color: var(--muted); }
.pg-list { margin: 0 0 20px; }
.pg-list li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.pg-list li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .6; }
.pg-list-num { counter-reset: pg; }
.pg-list-num li { padding-left: 28px; }
.pg-list-num li::before { counter-increment: pg; content: counter(pg); left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; line-height: 19px; text-align: center; opacity: 1; }
.pg-contact { display: grid; gap: 10px; margin: 0 0 24px; }
.pg-contact-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 3px 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pg-ci-k { font-size: 14px; color: var(--muted); }
.pg-ci-v { font-weight: 600; word-break: break-all; }
.pg-ci-d { grid-column: 2; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
blockquote.pg-note { color: #555f6b; font-size: 15px; border-left-color: var(--c); }
@media (max-width: 640px) {
  .pg-stats { grid-template-columns: 1fr; }
  .pg-contact-item { grid-template-columns: 1fr; }
  .pg-ci-d { grid-column: 1; }
  .tb-right{display: none;}
}

/* 响应式 */
@media (max-width: 1320px) {
  .layout { grid-template-columns: minmax(0, 1fr) 336px; }
  .hero { grid-template-columns: 1.6fr minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-sub { display: none; }
  .block-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-scroll { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav-scroll::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 13px 14px; font-size: 15px; text-align: left; }
  .header .container { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .search { width: 100%; margin-left: 0; }
  .article { padding: 20px 18px; }
  .article h1 { font-size: 23px; }
  .news-list .thumb { width: 122px; height: 80px; }
  .news-list h3 { font-size: 16px; }
  .news-list p { display: none; }
  .hero-main h2 { font-size: 22px; }
  .hero-main .thumb { aspect-ratio: 16/9; }
  .block-grid .item .thumb { width: 118px; height: 78px; }
  .footer-bottom { flex-direction: column; }
}
