/* ============================================================
   子页公共样式（列表页 / 内容页）
   版式 1:1 参照 cs.xiyou.edu.cn 子页布局，主题色换为本站 #083583
   ============================================================ */

/* ---------- 内页 Banner（导航下方通栏图） ---------- */
.page-banner {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}
.page-banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* ---------- 子页布局：左栏 230 + 右主区 ---------- */
.subpage-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  padding: 30px;
  box-sizing: border-box;
}
.subpage-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 1200px;
  background: #fff;
  border: 1px solid #e0eaf5;
  border-top: 3px solid #083583;
  padding: 30px 40px;
  box-shadow: 0 2px 12px rgba(26, 75, 156, 0.07);
  box-sizing: border-box;
}
.subpage-sidebar {
  flex: 0 0 230px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0;
  order: -1;
}

/* ---------- 左侧栏 ---------- */
.sidebar-banner {
  width: 100%;
  height: 60px;
  background: linear-gradient(160deg, #0e498f, #083583);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.sidebar-banner-title {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.3;
}
.sidebar-nav-box {
  background: #fff;
  border: 1px solid #e0eaf5;
  border-top: none;
  box-shadow: 0 2px 10px rgba(26, 75, 156, 0.07);
  overflow: hidden;
}
.sidebar-nav-list { list-style: none; }
.sidebar-nav-list li { border-bottom: 1px solid #eef3fb; }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list li a {
  display: block;
  padding: 12px 20px 12px 24px;
  font-size: 17px;
  color: #555;
  text-decoration: none;
  position: relative;
  transition: all 0.2s;
}
.sidebar-nav-list li a::before {
  content: '›';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  color: #bbb;
  background: none;
  transition: color 0.2s;
}
.sidebar-nav-list li a:hover,
.sidebar-nav-list li.active a {
  color: #083583;
  background: #f0f5fc;
  font-weight: bold;
}
.sidebar-nav-list li a:hover::before,
.sidebar-nav-list li.active a::before { background: none; color: #083583; }
.sidebar-nav-list li.active { border-left: 3px solid #083583; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 16px;
  color: #999;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: #666; transition: color 0.2s; }
.breadcrumb a:hover { color: #083583; }
.bc-sep { color: #bbb; font-size: 14px; }
.bc-current { color: #083583; font-weight: 500; }

/* ---------- 文章列表 ---------- */
.article-list { list-style: none; }
.article-item { border-bottom: 1px solid #eef3fb; }
.article-item:last-child { border-bottom: none; }
.article-item-link {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 20px 12px;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-item-link:hover { background: #f5f8fd; }
.article-item-link:hover .article-item-title { color: #083583; }
.article-item-date {
  flex-shrink: 0;
  width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f5fc;
  border-radius: 4px;
  padding: 8px 4px;
  transition: background 0.2s;
}
.article-item-link:hover .article-item-date { background: #083583; }
.article-item-link:hover .date-day,
.article-item-link:hover .date-ym { color: #fff; }
.date-day {
  font-size: 32px;
  font-weight: bold;
  color: #083583;
  line-height: 1;
  transition: color 0.2s;
}
.date-ym {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  transition: color 0.2s;
}
.article-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-item-title {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.article-item-desc {
  font-size: 15px;
  color: #888;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #ccc;
  transition: color 0.2s;
}
.article-item-link:hover .article-item-arrow { color: #083583; }

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eef3fb;
}
.p_t { font-size: 13px; color: #999; }
.p_pages { display: flex; gap: 30px; }
.p_fun, .p_fun_d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d6e4f5;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.p_fun:hover, .p_fun_d:hover {
  background: #083583;
  color: #fff;
  border-color: #083583;
}
.p_fun > a, .p_fun_d > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.p_no, .p_no_d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d6e4f5;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.p_no > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.p_no { color: #555; background: #fff; }
.p_no:hover { background: #083583; color: #fff; border-color: #083583; }
.p_no:hover > a { color: #fff; }
.p_no_d {
  color: #fff;
  background: #083583;
  border-color: #083583;
  font-weight: bold;
}

/* ---------- 文章详情 ---------- */
.article-title {
  font-size: 29px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.article-meta-item {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-meta-item svg { flex-shrink: 0; }
.article-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d6e4f5, transparent);
  margin: 18px 0 28px;
}
.article-figure {
  margin: 24px 0;
  text-align: center;
}
.article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(26, 75, 156, 0.1);
  display: block;
  margin: 0 auto;
}
.article-figure figcaption {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
  text-align: center;
}

/* 正文排版（宋体 20px / 2em 行距 / 首行缩进） */
.v_news_content {
  font-family: "宋体", SimSun !important;
  font-size: 20px !important;
  line-height: 2em !important;
}
.v_news_content p {
  font-family: "宋体", SimSun !important;
  font-size: 20px !important;
  text-indent: 2em !important;
  margin-top: 10px !important;
}
.v_news_content span { font-family: "宋体", SimSun !important; font-size: 20px; }
.v_news_content td { text-indent: 0 !important; }
.v_news_content td p,
.v_news_content table p,
.v_news_content table p[style] { text-indent: 0 !important; }
.v_news_content p:has(img) { text-indent: 0 !important; }
.v_news_content img { max-width: 100%; height: auto; }

/* 上一篇 / 下一篇 */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.article-nav-prev, .article-nav-next {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: #f5f8fd;
  border: 1px solid #e0eaf5;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}
.article-nav-prev:hover, .article-nav-next:hover {
  background: #083583;
  border-color: #083583;
}
.article-nav-next { text-align: right; }
.article-nav-label {
  font-size: 12px;
  color: #999;
  transition: color 0.2s;
}
.article-nav-prev:hover .article-nav-label,
.article-nav-next:hover .article-nav-label { color: rgba(255, 255, 255, 0.7); }
.article-nav-text {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.article-nav-prev:hover .article-nav-text,
.article-nav-next:hover .article-nav-text { color: #fff; }

/* 返回按钮 */
.article-back { text-align: center; }
.back-btn {
  display: inline-block;
  padding: 10px 36px;
  background: #083583;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 1px;
}
.back-btn:hover { background: #062868; }
