/* 速播 www.supor.cn —— 资讯门户样式 */
:root {
  --ink: #17191c;
  --ink-2: #3d434b;
  --muted: #767d87;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --accent: #d0342c;
  --accent-dark: #a92a24;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; }
.topbar-slogan { letter-spacing: .5px; }

/* 页头 */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 21px; font-weight: 800; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 21px; letter-spacing: 2px; }
.brand-text small { color: var(--muted); font-size: 11.5px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; font-size: 16px; font-weight: 600; color: var(--ink-2);
  border-radius: var(--radius); position: relative;
}
.main-nav a:hover { color: var(--accent); background: var(--bg-soft); }
.main-nav a.on { color: var(--accent); }
.main-nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
  border-radius: 2px; background: var(--accent);
}

/* 通用块头 */
.band-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.band-head h2 { font-size: 20px; position: relative; padding-left: 11px; }
.band-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--accent); }
.band-sub { color: var(--muted); font-size: 12.5px; }
.band-more { margin-left: auto; font-size: 13px; color: var(--muted); }
.band-more:hover { color: var(--accent); }
.meta { color: var(--muted); font-size: 12.5px; }
.chip {
  display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px;
  background: rgba(208, 52, 44, .09); color: var(--accent); font-weight: 600; flex: none;
}
.chip-line { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.chip-on { background: var(--accent); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 首页热点 */
main.wrap { padding-top: 22px; padding-bottom: 36px; }
.hot-band { margin-bottom: 30px; }
.hot-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 22px; }
.lead-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.lead-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.lead-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.lead-body h3 { font-size: 20px; }
.lead-body p { color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list { display: flex; flex-direction: column; }
.hot-list li { border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: 0; }
.hot-list a { display: flex; align-items: flex-start; gap: 10px; padding: 11px 4px; }
.hot-list .hot-t { flex: 1; font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list .meta { display: block; margin-top: 3px; }
.hot-list a > span:nth-child(2) { display: block; }
.hot-list a { flex-wrap: wrap; }
.hot-list .meta { width: 100%; padding-left: 30px; margin-top: -2px; }
.rank {
  width: 20px; height: 20px; border-radius: 4px; background: var(--bg-soft); color: var(--muted);
  font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; margin-top: 2px;
}
.rank.r1 { background: var(--accent); color: #fff; }
.rank.r2 { background: #e8734a; color: #fff; }
.rank.r3 { background: #eba53c; color: #fff; }

/* 首页主栏 + 侧栏 */
.home-cols { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.cat-block { margin-bottom: 28px; }
.cat-title { font-size: 18px; }
.cat-feature { display: grid; grid-template-columns: 5fr 6fr; gap: 18px; }
.feat-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.feat-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); }
.feat-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.feat-body h3 { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-body p { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list li { border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { display: block; padding: 9px 2px; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list .meta { float: right; padding-left: 10px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; background: var(--bg); }
.side-card h3 { font-size: 15px; margin-bottom: 10px; padding-left: 10px; position: relative; }
.side-card h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--accent); }
.rank-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.about-card p { font-size: 13px; color: var(--ink-2); }

/* 频道横滚区：互联网/汽车/财经/生活 以横向滚动呈现 */
.quad-band { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 22px; }
.quad-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #c6ccd4 var(--bg-soft);
}
.quad-grid::-webkit-scrollbar { height: 8px; }
.quad-grid::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
.quad-grid::-webkit-scrollbar-thumb { background: #c6ccd4; border-radius: 4px; }
.quad-grid::-webkit-scrollbar-thumb:hover { background: #a9b1bb; }
.quad-col {
  scroll-snap-align: start;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 12px 16px 14px;
}
.quad-col .band-head { margin-bottom: 6px; }
.quad-col .cat-title { font-size: 16px; }
.quad-col .mini-list li { border-color: #dcdfe3; }
.quad-col .mini-list a { padding: 8px 2px; }

/* 列表页 */
.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.page-head h1 { font-size: 24px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.tabs a { padding: 5px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--bg-soft); }
.tabs a.on { background: var(--accent); color: #fff; font-weight: 600; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-row { display: flex; gap: 16px; padding: 16px 2px; align-items: stretch; }
.news-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-body h3 { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body p { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-thumb, .rel-cover, .thumb { width: 168px; height: 106px; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); flex: none; }
.thumb-empty { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #59606a, #2e333a); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 6px; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; color: var(--ink-2); }
.pager span.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 栏目页 */
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-head h1 { font-size: 26px; }
.cat-cols { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }

/* 文章页 */
.art-page { max-width: 780px; margin: 0 auto; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumb span { margin: 0 6px; color: var(--line); }
.art-head h1 { font-size: 27px; line-height: 1.4; margin-bottom: 12px; }
.art-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.art-content { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); }
.art-content p { margin: 0 0 18px; }
.art-content h2, .art-content h3, .art-content h4 { margin: 26px 0 12px; color: var(--ink); }
.art-content img { margin: 0 auto 18px; border-radius: var(--radius); max-height: 520px; width: auto; }
.art-content figure { margin: 0 0 18px; }
.art-content figcaption { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.art-content blockquote { margin: 0 0 18px; padding: 10px 16px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.art-content ul, .art-content ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.art-source { margin-top: 26px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.art-source p { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 240px; }
.btn-origin { padding: 8px 18px; background: var(--accent); color: #fff; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; flex: none; }
.btn-origin:hover { background: var(--accent-dark); color: #fff; }
.related { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; }
.related h3 { font-size: 17px; margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rel-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; }
.rel-card .rel-cover { width: 100%; height: 120px; }
.rel-card div { padding: 10px 12px 12px; }
.rel-card h4 { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }

/* 404 */
.err-page { text-align: center; padding: 80px 0; }
.err-page h1 { font-size: 64px; color: var(--accent); }
.err-page p { margin: 10px 0 22px; color: var(--muted); }

/* 页脚 */
.site-foot { background: #1d2024; color: #b9bfc7; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 4fr 2fr 4fr; gap: 30px; padding: 30px 16px 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; margin-bottom: 10px; }
.foot-brand .brand-mark { width: 30px; height: 30px; font-size: 17px; }
.foot-col p { font-size: 13px; line-height: 1.8; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.foot-links a { font-size: 13px; }
.foot-links a:hover { color: #fff; }
.foot-note { font-size: 12.5px; color: #98a0a9; }
.foot-bar { border-top: 1px solid #2e333a; font-size: 12.5px; color: #8b939c; }
.foot-bar .wrap { padding: 12px 16px; }
.foot-bar a { color: #8b939c; }
.foot-bar a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 960px) {
  .hot-grid, .home-cols, .cat-cols { grid-template-columns: 1fr; }
  .home-side { order: 2; }
  .cat-feature { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .topbar-slogan { display: none; }
  .head-in { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .main-nav { width: 100%; overflow-x: auto; }
  .main-nav a { padding: 6px 10px; font-size: 15px; }
  .brand-text small { display: none; }
  .rel-grid { grid-template-columns: 1fr; }
  .quad-grid { grid-auto-columns: minmax(240px, 82vw); }
  .news-thumb { width: 116px; height: 78px; }
  .art-head h1 { font-size: 22px; }
  .art-content { font-size: 15.5px; }
}
