/* ============================================
   甘肃省图书馆 - 公共基础样式
   ============================================ */

:root {
  --primary: #8B1A1A;
  --primary-dark: #6B0F0F;
  --gold: #C4A35A;
  --gold-light: #D4B96A;
  --bg: #f5faff;
  --bg-white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E0D8CC;
  --max-width: 1400px;
  --font: "Microsoft YaHei UI", "微软雅黑 UI", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei UI", "微软雅黑 UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-width: 1400px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, button { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; }

.container { width: var(--max-width); margin: 0 auto; padding: 0 0px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* 面包屑 */
.breadcrumb {
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--text-light);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.breadcrumb img {
  width: auto;
  height: 16px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 0;
  font-size: 16px;
  color: #666666;
  gap: 0;
}
.pagination .pg-box {
  height: 35px;
  line-height: 35px;
  text-align: center;
  border: 1px solid #e8e8e8;
  box-sizing: border-box;
}
.pagination .pg-box + .pg-box { margin-left: -1px; }
.pagination .pg-total {
  padding: 0 18px;
}
.pagination .pg-prev,
.pagination .pg-next {
  width: 75px;
  cursor: pointer;
}
.pagination .pg-num {
  width: 57px;
  cursor: pointer;
}
.pagination .pg-num.active {
  background: #3b6eae;
  color: #fff;
  border-color: #3b6eae;
}
.pagination .pg-prev.disabled,
.pagination .pg-next.disabled {
  color: #ccc;
  cursor: default;
}

/* 内页通用 */
.page-content { padding: 40px 0 60px; min-height: 400px;padding-top: 0px;}

/* 列表通用 */
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.news-title {
  flex: 1;
  font-size: 16px;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}
.news-title:hover { color: var(--primary); }
.news-date { font-size: 14px; color: var(--text-muted); white-space: nowrap; }

/* 详情通用 */
.detail-wrap { background: #fff; padding: 40px; border-radius: 6px; border: 1px solid var(--border); }
.detail-header { border-bottom: 2px solid var(--primary); padding-bottom: 20px; margin-bottom: 30px; }
.detail-title { font-size: 24px; color: var(--primary); margin-bottom: 12px; }
.detail-meta { font-size: 14px; color: var(--text-muted); }
.detail-meta span { margin-right: 20px; }
.detail-body { font-size: 16px; line-height: 2; }
.detail-body p { margin-bottom: 16px; text-indent: 2em; }
.detail-body img { margin: 20px auto; border-radius: 4px; }
