/* zixun5 — 权威新闻网风（人民网/新华网式） */
:root {
  --cn-red: #b31d2a;
  --cn-red-dark: #8f1520;
  --cn-blue: #1a4f8b;
  --text: #222;
  --text-sub: #555;
  --text-muted: #888;
  --bg: #ececec;
  --paper: #fff;
  --line: #d9d9d9;
  --max: 1100px;
  --aside: 280px;
  --serif: 'Noto Serif SC', 'Source Han Serif SC', SimSun, serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tpl-zixun5 {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* 报头 */
.news-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-banner {
  background: linear-gradient(180deg, var(--cn-red) 0%, var(--cn-red-dark) 100%);
  color: #fff;
  border-bottom: 3px solid #d4a84b;
}
.banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.banner-logo { color: #fff; }
.banner-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
}
.banner-sub {
  display: block;
  font-size: 13px;
  opacity: 0.88;
  margin-top: 6px;
  letter-spacing: 2px;
}
.banner-search-hint {
  font-size: 12px;
  opacity: 0.75;
  padding-bottom: 4px;
}

.channel-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.channel-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
}
.channel-bar a {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-sub);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.channel-bar a:hover { color: var(--cn-red); }
.channel-bar a.on {
  color: var(--cn-red);
  font-weight: 600;
  border-bottom-color: var(--cn-red);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 24px;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: 130px;
  background: var(--paper);
  z-index: 99;
  padding: 8px 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

/* 主体 */
.news-body {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  width: 100%;
}
.news-layout {
  display: grid;
  grid-template-columns: 1fr var(--aside);
  gap: 16px;
  align-items: start;
}
.news-main { min-width: 0; }

.crumb-bar {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.crumb-bar a:hover { color: var(--cn-red); }

/* 今日关注 */
.focus-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cn-red);
  padding: 24px 20px;
  margin-bottom: 16px;
}
.focus-label {
  display: inline-block;
  background: var(--cn-red);
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.focus-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
}
.focus-title a:hover { color: var(--cn-red); }
.focus-abs {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 14px;
}
.focus-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.list-channel-head {
  background: var(--paper);
  border-left: 4px solid var(--cn-red);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.list-channel-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cn-red);
}
.list-channel-head p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.channel-tag {
  display: inline-block;
  background: var(--cn-red);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
}
.channel-tag.sm { font-size: 11px; padding: 1px 6px; }

/* 列表块 */
.list-block, .aside-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 16px;
}
.block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cn-red);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.block-title i {
  display: block;
  width: 4px;
  height: 16px;
  background: var(--cn-red);
}

.text-news-list li {
  border-bottom: 1px solid #f0f0f0;
}
.text-news-list li:last-child { border-bottom: none; }
.text-news-item {
  display: flex;
  gap: 10px;
  padding: 14px 4px;
  transition: background 0.15s;
}
.text-news-item:hover { background: #fafafa; }
.text-news-item:hover h3 { color: var(--cn-red); }
.dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--cn-red);
  border-radius: 50%;
  margin-top: 8px;
}
.item-main { flex: 1; min-width: 0; }
.item-main h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
}
.item-abs {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 8px;
}
.item-foot {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 侧栏 */
.news-aside { min-width: 0; }
.aside-list li, .channel-guide li {
  padding: 9px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
  line-height: 1.5;
}
.aside-list li:last-child, .channel-guide li:last-child { border-bottom: none; }
.aside-list a:hover, .channel-guide a:hover { color: var(--cn-red); }
.channel-guide a {
  display: block;
  padding: 4px 0;
  color: var(--text-sub);
}
.channel-guide a::before {
  content: '› ';
  color: var(--cn-red);
}

/* 文章页 */
.article-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
  min-width: 0;
}
.sheet-channel { margin-bottom: 12px; }
.sheet-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sheet-source {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.sheet-cover {
  margin: 20px 0;
  text-align: center;
}
.sheet-cover img {
  margin: 0 auto;
  border: 1px solid var(--line);
  max-width: 100%;
}
.sheet-content {
  font-size: 17px;
  line-height: 2;
  text-align: justify;
  font-family: var(--serif);
}
.sheet-content p {
  margin-bottom: 1.2em;
  text-indent: 2em;
}
.sheet-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.5em 0 0.8em;
  text-indent: 0;
  color: var(--cn-red-dark);
  padding-left: 12px;
  border-left: 3px solid var(--cn-red);
}
.sheet-content figure { margin: 1em 0; text-indent: 0; }
.sheet-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--sans);
  margin-top: 6px;
}
.sheet-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.pg-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  margin-top: 12px;
}
.pg-btn-red {
  background: var(--cn-red);
  color: #fff;
  border-color: var(--cn-red);
}
.pg-btn-red:hover { background: var(--cn-red-dark); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.pg-info { font-size: 13px; color: var(--text-muted); }

/* 页脚 */
.news-footer {
  background: #2c2c2c;
  color: rgba(255,255,255,0.75);
  margin-top: auto;
  padding: 24px 16px;
  text-align: center;
}
.footer-nav {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 13px;
}
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 12px; line-height: 1.8; opacity: 0.7; }

.empty-tip, .error-sheet {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
  background: var(--paper);
  border: 1px solid var(--line);
}
.error-sheet h1 { font-size: 48px; color: var(--cn-red); opacity: 0.4; margin-bottom: 12px; }

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-aside { order: 2; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .channel-bar { display: none; }
  .nav-mobile { display: block; }
  .banner-search-hint { display: none; }
  .banner-name { letter-spacing: 2px; }
  .sheet-content p { text-indent: 0; font-size: 16px; }
  .sheet-title { font-size: 1.25rem; }
}
