/* ============================================================
   Tribune Theme — 黑白红报刊头条风
   字体: 粗黑体, 头条加粗, 红色高亮
   ============================================================ */

:root{
  --theme-primary:      #0a0a0a;     /* 主色 极黑 */
  --theme-primary-dark: #000;
  --theme-primary-soft: #f4f4f4;
  --theme-accent:       #d1281f;     /* 辅色 头条红 */
  --theme-accent-dark:  #a01f17;
  --theme-text:         #111;
  --theme-text-muted:   #6a6a6a;
  --theme-border:       #d8d8d8;
  --theme-bg:           #fff;
  --theme-bg-soft:      #f7f7f7;
  --theme-radius:       0;
  --theme-shadow:       0 1px 0 rgba(0,0,0,.04);
  --theme-shadow-lg:    0 6px 18px rgba(0,0,0,.08);
  --theme-container:    1180px;
  --theme-font:         "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --theme-headline:     Impact, "Helvetica Neue Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; font-family:var(--theme-font);
  font-size:15px; line-height:1.7;
  color:var(--theme-text); background:var(--theme-bg);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
a{ color:var(--theme-text); text-decoration:none; transition:color .12s; }
a:hover{ color:var(--theme-accent); }
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3,h4{ margin:0 0 .55em; font-weight:900; line-height:1.18; color:var(--theme-text); letter-spacing:-.01em; }
h1{ font-size:2.1rem; }
h2{ font-size:1.55rem; }
h3{ font-size:1.18rem; }
p{ margin:0 0 1em; }
ul,ol{ padding-left:1.4em; margin:0 0 1em; }
code{
  font-family:ui-monospace, SFMono-Regular,Consolas,Menlo,monospace;
  background:var(--theme-primary-soft); color:var(--theme-accent-dark);
  padding:2px 6px; border-radius:0; font-size:.9em;
}
.container{ max-width:var(--theme-container); margin:0 auto; padding:0 20px; }

/* 报头 */
.site-header{
  background:#fff; border-bottom:6px double var(--theme-text);
  position:sticky; top:0; z-index:50;
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:24px;
}
.site-brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.site-brand a{ color:var(--theme-text); display:flex; align-items:center; gap:12px; }
.site-brand .logo-mark{
  width:42px; height:42px; border-radius:0;
  background:var(--theme-accent);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-weight:900; font-size:22px; font-family:var(--theme-headline);
}
.site-brand .brand-text{ font-size:1.6rem; font-weight:900; font-family:var(--theme-headline); letter-spacing:-.02em; text-transform:uppercase; }
.site-brand .brand-sub{ font-size:.78rem; color:var(--theme-text-muted); margin-top:2px; letter-spacing:.08em; text-transform:uppercase; }

.main-nav{ display:flex; align-items:center; gap:0; flex:1; min-width:0; }
.main-nav a{
  display:inline-block; padding:8px 14px; border-radius:0;
  color:var(--theme-text); font-size:14px; font-weight:700;
  white-space:nowrap; transition:background .12s, color .12s;
  text-transform:uppercase; letter-spacing:.04em;
}
.main-nav a:hover, .main-nav a.active{
  background:var(--theme-text); color:#fff;
}

.header-search{ flex-shrink:0; }
.header-search input{
  width:200px; height:36px; padding:0 12px 0 36px;
  border:2px solid var(--theme-text); border-radius:0;
  font-size:14px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  outline:none; font-weight:600;
}
.header-search input:focus{ border-color:var(--theme-accent); }
.mobile-menu-btn{ display:none; border:0; background:none; padding:8px; cursor:pointer; color:var(--theme-text); }

/* 主体 */
.page{ padding:28px 0 44px; }
.page-grid{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:32px; }
.page-grid--full{ display:block; }

/* Hero：头条黑底白字 */
.hero{
  background:var(--theme-text); color:#fff;
  padding:46px 0 42px; margin-bottom:28px;
  border-top:3px solid var(--theme-accent);
  border-bottom:3px solid var(--theme-accent);
  border-radius:0; text-align:left;
}
.hero h1{
  color:#fff; font-size:2.6rem; margin-bottom:.25em;
  font-weight:900; font-family:var(--theme-headline); letter-spacing:-.02em;
  text-transform:uppercase;
}
.hero .hero-sub{ color:rgba(255,255,255,.85); font-size:1.05rem; max-width:740px; font-weight:500; }

/* 卡片 */
.card{
  background:#fff; border:0; border-radius:0; box-shadow:none;
  margin-bottom:28px;
}
.card + .card{ margin-top:0; }
.card__header{
  padding:0 0 12px; border-bottom:3px solid var(--theme-text);
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:0;
}
.card__title{
  font-size:1.35rem; font-weight:900; margin:0;
  display:inline-flex; align-items:center; gap:0; text-transform:uppercase;
  letter-spacing:-.01em;
  background:var(--theme-text); color:#fff; padding:8px 14px;
}
.card__title::before{ display:none; }
.card__more{
  font-size:.82rem; color:var(--theme-accent); font-weight:700;
  text-transform:uppercase; letter-spacing:.04em;
}
.card__more:hover{ color:var(--theme-accent-dark); text-decoration:underline; }
.card__body{ padding:0; }

/* 文章列表 */
.article-list{ display:flex; flex-direction:column; gap:0; }
.article-item{
  display:flex; gap:18px; padding:18px 0;
  border-bottom:1px solid var(--theme-border);
}
.article-item:last-child{ border-bottom:0; }
.article-item:hover{ background:var(--theme-bg-soft); }
.article-item__cover{
  width:180px; height:120px; border-radius:0; overflow:hidden;
  flex-shrink:0; background:var(--theme-bg-soft);
}
.article-item__cover img{ width:100%; height:100%; object-fit:cover; }
.article-item__body{ flex:1; min-width:0; display:flex; flex-direction:column; }
.article-item__title{
  font-size:1.18rem; font-weight:900; margin:0 0 .3em; line-height:1.28;
}
.article-item__title a{ color:var(--theme-text); }
.article-item__title a:hover{ color:var(--theme-accent); }
.article-item__excerpt{
  color:#555; font-size:14px; line-height:1.65; margin:0 0 auto;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.article-item__meta{
  display:flex; align-items:center; gap:14px; margin-top:8px;
  font-size:11.5px; color:var(--theme-text-muted);
  text-transform:uppercase; letter-spacing:.06em; font-weight:600;
}
.article-item__meta .views::before{ content:"VIEWS "; }
.article-item__meta .date::before{  content:""; }

/* 文章详情 */
.article{
  background:#fff; border:0; border-radius:0; box-shadow:none;
  padding:0;
}
.article__title{
  font-size:2.6rem; line-height:1.15; margin-bottom:14px;
  font-family:var(--theme-headline); letter-spacing:-.02em;
  text-transform:uppercase;
}
.article__meta{
  display:flex; gap:14px; flex-wrap:wrap; padding:12px 0;
  border-top:3px double var(--theme-text); border-bottom:1px solid var(--theme-border);
  margin-bottom:28px; font-size:12px; color:var(--theme-text-muted);
  text-transform:uppercase; letter-spacing:.06em; font-weight:600;
}
.article__meta a{ color:var(--theme-text-muted); }
.article__meta a:hover{ color:var(--theme-accent); }
.article__cover{ width:100%; max-height:420px; object-fit:cover; border-radius:0; margin-bottom:24px; }
.article__content{ font-size:16px; line-height:1.85; color:#222; }
.article__content h2,.article__content h3{ margin-top:1.6em; }
.article__content p{ margin-bottom:1.1em; }
.article__content p:first-of-type{ font-size:1.12em; font-weight:500; }
.article__content img{ border-radius:0; margin:1.1em 0; }
.article__content blockquote{
  margin:1.2em 0; padding:1em 1.4em; border-left:5px solid var(--theme-accent);
  background:var(--theme-bg-soft); color:#333; font-weight:500;
  font-size:1.05em;
}
.article__content pre{
  background:#0a0a0a; color:#fff; padding:14px 18px; border-radius:0;
  overflow-x:auto; font-size:14px;
}

/* 侧栏 */
.aside{ position:sticky; top:96px; align-self:start; }
.widget{
  background:#fff; border:1px solid var(--theme-border); border-radius:0;
  box-shadow:none; margin-bottom:20px;
}
.widget__title{
  padding:10px 16px; border-bottom:3px solid var(--theme-text);
  font-size:.95rem; font-weight:900; margin:0;
  text-transform:uppercase; letter-spacing:.05em;
  background:var(--theme-text); color:#fff;
}
.widget__title::before{ display:none; }
.widget__body{ padding:6px 0; }
.widget__list{ list-style:none; padding:0; margin:0; }
.widget__list li{ padding:8px 16px; border-bottom:1px dotted var(--theme-border); }
.widget__list li:last-child{ border-bottom:0; }
.widget__list li a{
  color:var(--theme-text); font-size:14px; line-height:1.5;
  display:block; font-weight:600;
}
.widget__list li a:hover{ color:var(--theme-accent); }

.widget--ranked .widget__list{ counter-reset:rank; }
.widget--ranked .widget__list li{ display:flex; gap:10px; align-items:flex-start; counter-increment:rank; }
.widget--ranked .widget__list li::before{
  content:counter(rank); flex-shrink:0;
  width:24px; height:24px; line-height:24px; text-align:center;
  background:var(--theme-text); color:#fff;
  border-radius:0; font-size:12px; font-weight:900;
}
.widget--ranked .widget__list li:nth-child(-n+3)::before{ background:var(--theme-accent); }

/* 分类页头 */
.cat-header{
  background:transparent; border:0; border-radius:0; box-shadow:none;
  padding:14px 0 18px; margin-bottom:18px;
  border-bottom:3px solid var(--theme-text);
}
.cat-header h1{
  margin:0 0 .3em; font-size:2rem; font-family:var(--theme-headline);
  text-transform:uppercase; letter-spacing:-.01em;
}
.cat-header p{ margin:0; color:var(--theme-text-muted); }

/* 标签云 */
.tag-cloud{ display:flex; flex-wrap:wrap; gap:8px; padding:14px 0; }
.tag-chip{
  display:inline-block; padding:5px 12px; border-radius:0;
  background:var(--theme-text); color:#fff;
  border:0; font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em;
  transition:background .12s;
}
.tag-chip:hover{ background:var(--theme-accent); color:#fff; }

/* 标签详情 */
.tag-detail{ background:#fff; border:0; border-radius:0; box-shadow:none; padding:0; }
.tag-detail__title{ font-size:2rem; margin-bottom:.5em; font-family:var(--theme-headline); text-transform:uppercase; }
.tag-detail__lead{ color:var(--theme-text-muted); font-size:.98rem; margin-bottom:24px; }
.tag-detail__section{ margin-top:26px; }
.tag-detail__section h2{ font-size:1.15rem; }

/* 分页 */
.pager,.pagination{
  display:flex; gap:4px; justify-content:center; flex-wrap:wrap;
  padding:24px 0; list-style:none; margin:0;
}
.pager a, .pager span,
.pagination li > a, .pagination li > span{
  display:inline-block; padding:6px 13px; border-radius:0;
  border:1px solid var(--theme-text); background:#fff;
  color:var(--theme-text); font-size:13px; text-decoration:none;
  font-weight:700;
}
.pager a:hover, .pagination li > a:hover{ background:var(--theme-text); color:#fff; }
.pager .active, .pager .current,
.pagination li.active > span, .pagination li.active > a{
  background:var(--theme-accent); border-color:var(--theme-accent); color:#fff;
}
.pager .disabled, .pagination li.disabled > span{ color:var(--theme-text-muted); cursor:not-allowed; }

/* 搜索 */
.search-summary{
  background:var(--theme-text); color:#fff; border-left:0;
  border-radius:0; padding:14px 18px; margin-bottom:16px;
  font-size:14px; font-weight:600;
}
.search-summary strong{ color:var(--theme-accent); }

/* 面包屑 */
.crumb{
  font-size:12px; color:var(--theme-text-muted); margin-bottom:14px;
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
  text-transform:uppercase; letter-spacing:.06em; font-weight:600;
}
.crumb a{ color:var(--theme-text-muted); }
.crumb a:hover{ color:var(--theme-accent); }
.crumb .sep{ opacity:.7; }

/* footer */
.site-footer{
  background:var(--theme-text); color:#aaa; margin-top:48px; padding:40px 0 22px;
  border-top:6px solid var(--theme-accent);
}
.site-footer a{ color:#ddd; }
.site-footer a:hover{ color:var(--theme-accent); }
.site-footer .friend{ margin-bottom:16px; font-size:13px; }
.site-footer .friend a{ margin-right:12px; }
.site-footer .copyright{
  border-top:1px solid #333; padding-top:16px; font-size:12px;
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between;
  text-transform:uppercase; letter-spacing:.05em;
}

/* 错误页 */
.error{ text-align:center; padding:80px 20px; }
.error h1{ font-size:7rem; color:var(--theme-accent); margin-bottom:0; font-family:var(--theme-headline); letter-spacing:-.02em; }
.error p{ font-size:1.1rem; color:var(--theme-text-muted); }
.error .btn{
  display:inline-block; margin-top:18px; padding:10px 24px;
  background:var(--theme-text); color:#fff; border-radius:0; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em;
}
.error .btn:hover{ background:var(--theme-accent); }

/* 移动端 */
@media (max-width: 992px){
  .page-grid{ grid-template-columns:1fr; gap:24px; }
  .aside{ position:static; }
  .article__title{ font-size:1.8rem; }
}
@media (max-width: 768px){
  .main-nav{ display:none; position:absolute; top:72px; left:0; right:0;
              background:#fff; flex-direction:column; padding:8px;
              border-bottom:6px double var(--theme-text); }
  .main-nav.open{ display:flex; }
  .header-search{ display:none; }
  .mobile-menu-btn{ display:inline-flex; }
  .article-item{ flex-direction:column; gap:12px; }
  .article-item__cover{ width:100%; height:200px; }
  .hero{ padding:32px 0 28px; }
  .hero h1{ font-size:1.8rem; }
  .article__title{ font-size:1.5rem; }
}

/* 首页聚合块 */
.cat-block{ padding:0; }
.cat-block .card__title{ font-size:1.35rem; }
.cat-block .card__title a{ color:#fff; }
.cat-block .card__title a:hover{ color:var(--theme-accent); }
.cat-block__desc{
  margin:0; padding:10px 0;
  color:var(--theme-text-muted); font-size:13px;
  border-bottom:1px solid var(--theme-border);
}
.cat-block__body{ display:flex; flex-direction:column; padding-top:16px; }

.cat-block__featured{
  display:grid; grid-template-columns:1fr 1fr;
  gap:18px; padding:0 0 18px;
  border-bottom:1px solid var(--theme-border);
}
.cat-block__featured .article-item{
  flex-direction:column; gap:0; padding:0;
  border:1px solid var(--theme-text); background:#fff;
  transition:background .15s;
}
.cat-block__featured .article-item:hover{
  transform:none; box-shadow:none; background:var(--theme-bg-soft);
  border-color:var(--theme-accent);
}
.cat-block__featured .article-item__cover{ width:100%; height:180px; border-radius:0; }
.cat-block__featured .article-item__body{ padding:14px 16px 16px; }
.cat-block__featured .article-item__title{ font-size:1.05rem; }

.cat-block__list{
  list-style:none; margin:0;
  padding:14px 0 4px;
  display:grid; grid-template-columns:1fr 1fr;
  gap:0 36px;
}
.cat-block__list li{
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 0; border-bottom:1px dotted var(--theme-border);
  font-size:14px;
}
.cat-block__list li a{
  color:var(--theme-text); flex:1; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-weight:600;
}
.cat-block__list li a:hover{ color:var(--theme-accent); }
.cat-block__list time{
  color:var(--theme-text-muted); font-size:11.5px;
  flex-shrink:0; margin-left:12px;
  text-transform:uppercase; letter-spacing:.04em; font-weight:600;
}
@media (max-width: 768px){
  .cat-block__featured{ grid-template-columns:1fr; gap:14px; padding:0 0 14px; }
  .cat-block__list{ grid-template-columns:1fr; gap:0; padding:12px 0; }
}
