/* 来自 redesign/category_military.html 的内联样式 */
/* ========== 军事栏目页 - 按22条优化建议重写 ========== */

.page-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* 面包屑 */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px; color: var(--ink-4);
  border-bottom: 1px solid var(--line-light);
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: var(--ink-5); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* 频道标题区 */
.channel-header {
  padding: 28px 0 16px;
}
.channel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.channel-title h1 {
  font-size: 30px; font-weight: 600; line-height: 1.2;
  font-family: var(--font-serif);
  color: var(--ink); letter-spacing: 2px;
}
.page-count {
  font-size: 13px; color: #999;
}

/* 分类导航 */
.cat-subnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.cat-subnav-inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.cat-subnav-inner::-webkit-scrollbar { display: none; }
.cat-subnav a {
  flex-shrink: 0;
  padding: 13px 22px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--dur-fast);
}
.cat-subnav a:hover { color: var(--brand); }
.cat-subnav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

/* ===== 统一双栏布局 ===== */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
}

/* 左栏 */
.main-col { min-width: 0; }

/* 主新闻大图 */
.hero-news {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all var(--dur-normal);
}
.hero-news:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.hero-news img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}
.hero-news-body {
  padding: 18px 20px 20px;
  border: 1px solid #eee;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.hero-news-cat {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: #fff; background: #1e3a5f;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 10px;
}
.hero-news-title {
  font-size: 22px; line-height: 1.5; font-weight: 600;
  font-family: var(--font-serif);
  color: var(--ink);
  transition: color var(--dur-fast);
}
.hero-news:hover .hero-news-title { color: var(--brand); }
.hero-news-summary {
  margin-top: 8px;
  font-size: 14px; line-height: 1.8; color: #666;
}
.hero-news-meta {
  margin-top: 10px;
  font-size: 12px; color: #999;
  display: flex; align-items: center; gap: 10px;
}
.hero-news-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #ddd; }

/* 普通新闻列表 */
.news-list { display: flex; flex-direction: column; }
.news-list-item {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item .nli-cat {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 6px;
}
.news-list-title {
  font-size: 18px; line-height: 1.5; font-weight: 500;
  font-family: var(--font-serif);
  color: var(--ink);
  transition: color var(--dur-fast);
}
.news-list-item:hover .news-list-title { color: var(--brand); }
.news-list-summary {
  margin-top: 6px;
  font-size: 13px; line-height: 1.7; color: #666;
}
.news-list-meta {
  margin-top: 8px;
  font-size: 12px; color: #999;
  display: flex; align-items: center; gap: 10px;
}
.news-list-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #ddd; }
.news-list-tags {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.news-list-tags a {
  font-size: 12px; color: #888;
  padding: 2px 8px; background: #f7f7f7;
  border-radius: 4px; transition: all var(--dur-fast);
}
.news-list-tags a:hover { color: var(--brand); background: #fff1f1; }

/* 带缩略图的新闻 */
.news-list-item.with-thumb {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}
.news-list-item.with-thumb .nli-thumb {
  width: 140px; aspect-ratio: 16/10;
  border-radius: 6px; overflow: hidden;
  flex-shrink: 0;
}
.news-list-item.with-thumb .nli-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* 分页 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.pagination {
  display: inline-flex; align-items: center; gap: 6px;
}
.pagination a, .pagination span {
  min-width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-3);
  border: 1px solid #e5e5e5;
  padding: 0 12px;
  transition: all var(--dur-fast);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 右栏 ===== */
.sidebar-col { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* 军事快讯 - 完整卡片 */
.sidebar-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px 20px;
}
.sidebar-card .sc-title {
  font-size: 16px; font-weight: 700;
  font-family: var(--font-serif);
  color: var(--ink);
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  margin-bottom: 14px; line-height: 1.2;
}

/* 快讯条目 */
.quick-news-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f2f2f2;
}
.quick-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.quick-news-item:first-child { padding-top: 0; }
.quick-news-item .qni-date {
  font-size: 12px; color: #999;
  margin-bottom: 4px;
}
.quick-news-item h4 {
  font-size: 14px; line-height: 1.5; font-weight: 600;
  color: var(--ink);
  transition: color var(--dur-fast);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-news-item:hover h4 { color: var(--brand); }

/* 最热榜单 - 保留卡片，强化序号 */
.hot-rank-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}
.hot-rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.hot-rank-item:first-child { padding-top: 0; }
.hot-rank-item .rank {
  flex-shrink: 0;
  width: 24px;
  font-size: 15px; font-weight: 600;
  color: #999;
  font-family: var(--font-serif);
  text-align: center;
}
.hot-rank-item:nth-child(-n+3) .rank {
  color: #d92d2d;
  font-weight: 700;
}
.hot-rank-item h4 {
  font-size: 14px; line-height: 1.5; font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-rank-item:hover h4 { color: var(--brand); }

/* 热门标签 - 弱化边框 */
.tag-section {
  padding: 0;
  border: none;
  background: transparent;
}
.tag-section .sc-title {
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  margin-bottom: 14px;
}
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
  transition: all var(--dur-fast);
}
.tag-cloud .tag:hover {
  background: #fff1f1;
  color: #d92d2d;
}

/* 栏目推荐 - 简洁列表，不套卡片 */
.rec-section {
  padding: 0;
  border: none;
  background: transparent;
}
.rec-section .sc-title {
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  margin-bottom: 14px;
}
.recommend-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}
.recommend-item:last-child { border-bottom: none; padding-bottom: 0; }
.recommend-item h4 {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  transition: color var(--dur-fast);
}
.recommend-item:hover h4 { color: var(--brand); }
.recommend-item p {
  font-size: 12px; color: #888; line-height: 1.5;
}

/* ===== 军史纵横 ===== */
.history-section {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}
.history-section .hs-title {
  font-size: 20px; font-weight: 700;
  font-family: var(--font-serif);
  color: var(--ink);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.history-section .hs-title::before {
  content: ''; width: 4px; height: 18px;
  background: var(--brand); border-radius: 2px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.history-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #eee;
  border-radius: 10px;
  position: relative;
  transition: all var(--dur-fast);
}
.history-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px;
  width: 32px; height: 3px;
  background: var(--brand);
  border-radius: 0 0 2px 2px;
}
.history-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.history-year {
  font-size: 24px; font-weight: 600;
  color: #c62828;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}
.history-card h4 {
  font-size: 16px; font-weight: 600; line-height: 1.45;
  color: var(--ink);
  margin-bottom: 6px;
  transition: color var(--dur-fast);
}
.history-card:hover h4 { color: var(--brand); }
.history-card p {
  font-size: 13px; line-height: 1.7; color: #666;
}

/* 响应式 */
@media (max-width: 1199px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
}
@media (max-width: 991px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-col { order: 2; margin-top: 32px; }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .page-container { width: min(1280px, calc(100% - 32px)); }
  .channel-title h1 { font-size: 26px; }
  .hero-news-title { font-size: 19px; }
  .news-list-title { font-size: 17px; }
  .news-list-item.with-thumb {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .news-list-item.with-thumb .nli-thumb { width: 100px; }
  .history-grid { grid-template-columns: 1fr; }
}