/* ==========================================================================
   新闻 / 公告 / 文档 / 详情页 通用样式
   ========================================================================== */

/* ---------------- 列表布局 ---------------- */
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}

/* 分类 tab */
.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.type-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  color: var(--ink-500);
  transition: all .18s ease;
}
.type-tabs a:hover { color: var(--brand-600); border-color: var(--brand-500); }
.type-tabs a.active {
  background: var(--brand-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .22);
}

/* 资讯卡片列表 */
.news-card-list { display: grid; gap: 16px; }
.news-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--card-shadow-hover);
}
.news-card-img {
  width: 210px;
  height: 130px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card-body h3 { font-size: 18px; color: var(--ink-900); margin-bottom: 10px; }
.news-card-body .desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-300);
}
.news-card-foot .type { color: var(--brand-600); }

/* 公告列表（紧凑） */
.announce-list { display: grid; gap: 12px; }
.announce-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.announce-item:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.announce-item-title { flex: 1; font-size: 15px; color: var(--ink-700); }
.announce-item-title a:hover { color: var(--brand-600); }
.announce-item-time { font-size: 13px; color: var(--ink-300); flex-shrink: 0; }
.list-total { margin-bottom: 16px; font-size: 14px; color: var(--ink-500); }

/* 侧边 */
.side-card {
  padding: 22px 20px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}
.side-card h4 {
  font-size: 16px;
  color: var(--ink-900);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.side-link-list { display: grid; gap: 12px; }
.side-link-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
}
.side-link-item .no {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
}
.side-link-item a:hover { color: var(--brand-600); }

/* ---------------- 详情页 ---------------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.detail-main {
  padding: 38px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.detail-title { font-size: 28px; line-height: 1.4; color: var(--ink-900); }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-300);
}
.detail-meta a { color: var(--brand-600); }

.detail-body { font-size: 15px; line-height: 1.95; color: var(--ink-700); }
.detail-body p { margin-bottom: 16px; }
.detail-body h2,
.detail-body h3,
.detail-body h4 { margin: 26px 0 14px; color: var(--ink-900); }
.detail-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; }
.detail-body ul,
.detail-body ol { padding-left: 22px; margin-bottom: 16px; }
.detail-body ul { list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body li { margin-bottom: 8px; }
.detail-body a { color: var(--brand-600); text-decoration: underline; }
.detail-body table { width: 100%; margin-bottom: 18px; border: 1px solid var(--line); }
.detail-body th,
.detail-body td { padding: 10px 14px; border: 1px solid var(--line); font-size: 14px; }
.detail-body blockquote {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-left: 3px solid var(--brand-500);
  background: #f8faff;
  color: var(--ink-500);
}

.detail-page {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-500);
}
.detail-page a:hover { color: var(--brand-600); }

/* ---------------- 文档中心 ---------------- */
.doc-search {
  max-width: 620px;
  margin: 0 auto;
}
.doc-search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .18);
}
.doc-search-box input {
  flex: 1;
  height: 46px;
  border: 0;
  padding: 0 18px;
  background: transparent;
  font-size: 15px;
}
.doc-search-box input:focus { box-shadow: none; }
.doc-search-box .search-btn {
  height: 46px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc-box {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc-box:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.doc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.doc-header .d-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 19px;
}
.doc-header h5 { font-size: 16px; color: var(--ink-900); }
.doc-cont { display: grid; gap: 10px; }
.doc-cont a { font-size: 14px; color: var(--ink-500); }
.doc-cont a:hover { color: var(--brand-600); }

/* 文档详情页（左右结构） */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.doc-nav h5 { font-size: 15px; color: var(--ink-900); margin-bottom: 12px; }
.doc-nav ul { display: grid; gap: 8px; }
.doc-nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-500);
}
.doc-nav li a:hover,
.doc-nav li a.active { background: var(--brand-50); color: var(--brand-600); }

@media (max-width: 992px) {
  .list-layout,
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 160px; }
  .detail-main { padding: 24px 20px; }
  .detail-title { font-size: 22px; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .announce-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}
