/* ==========================================================
   全站基础样式
   ========================================================== */

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
}


/* ==========================================================
   Quarto Table Listing
   ========================================================== */

/*
  直接选择 Quarto Listing 区域里的 table。
  不再依赖 genset-listing 或 maintenance-listing 的自定义 ID。
*/
main .quarto-listing table,
main .quarto-listing-container-table table,
main table.quarto-listing-table {
  width: 100% !important;
  min-width: 900px !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin-bottom: 0;
}


/* 日期列 */
main .quarto-listing table th:nth-child(1),
main .quarto-listing table td:nth-child(1),
main .quarto-listing-container-table table th:nth-child(1),
main .quarto-listing-container-table table td:nth-child(1),
main table.quarto-listing-table th:nth-child(1),
main table.quarto-listing-table td:nth-child(1) {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  white-space: nowrap !important;
}


/* 文档名称列 */
main .quarto-listing table th:nth-child(2),
main .quarto-listing table td:nth-child(2),
main .quarto-listing-container-table table th:nth-child(2),
main .quarto-listing-container-table table td:nth-child(2),
main table.quarto-listing-table th:nth-child(2),
main table.quarto-listing-table td:nth-child(2) {
  width: 52% !important;
}


/* 内容说明列 */
main .quarto-listing table th:nth-child(3),
main .quarto-listing table td:nth-child(3),
main .quarto-listing-container-table table th:nth-child(3),
main .quarto-listing-container-table table td:nth-child(3),
main table.quarto-listing-table th:nth-child(3),
main table.quarto-listing-table td:nth-child(3) {
  width: auto !important;
}


/* 表头 */
main .quarto-listing table thead th,
main .quarto-listing-container-table table thead th,
main table.quarto-listing-table thead th {
  padding: 0.9rem 1rem;
  color: #222;
  background: #f7f8fa;
  border-top: 1px solid #cfd4d9;
  border-bottom: 1px solid #9fa7ae;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
}


/* 正文单元格 */
main .quarto-listing table tbody td,
main .quarto-listing-container-table table tbody td,
main table.quarto-listing-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #d8dde2;
  line-height: 1.55;
  vertical-align: top;
}


/* 日期文字 */
main .quarto-listing table tbody td:nth-child(1),
main .quarto-listing-container-table table tbody td:nth-child(1),
main table.quarto-listing-table tbody td:nth-child(1) {
  color: #4f5963;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}


/* 标题列 */
main .quarto-listing table tbody td:nth-child(2),
main .quarto-listing-container-table table tbody td:nth-child(2),
main table.quarto-listing-table tbody td:nth-child(2) {
  padding-right: 1.75rem;
  overflow-wrap: anywhere;
}


/* 标题链接 */
main .quarto-listing table tbody td:nth-child(2) a,
main .quarto-listing-container-table table tbody td:nth-child(2) a,
main table.quarto-listing-table tbody td:nth-child(2) a {
  color: #1769d2;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

main .quarto-listing table tbody td:nth-child(2) a:hover,
main .quarto-listing-container-table table tbody td:nth-child(2) a:hover,
main table.quarto-listing-table tbody td:nth-child(2) a:hover {
  color: #104f9f;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* 内容说明 */
main .quarto-listing table tbody td:nth-child(3),
main .quarto-listing-container-table table tbody td:nth-child(3),
main table.quarto-listing-table tbody td:nth-child(3) {
  color: #4f5963;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}


/* 行悬停 */
main .quarto-listing table tbody tr:hover,
main .quarto-listing-container-table table tbody tr:hover,
main table.quarto-listing-table tbody tr:hover {
  background-color: #f7f9fb;
}


/* 窄屏横向滚动 */
main .quarto-listing,
main .quarto-listing-container-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  main .quarto-listing table,
  main .quarto-listing-container-table table,
  main table.quarto-listing-table {
    min-width: 850px !important;
  }
}

/* ==========================================================
   导航栏网站名称：显示为普通文字
   ========================================================== */

.navbar-brand-static {
  cursor: default;
  pointer-events: none;
  text-decoration: none !important;
}

.navbar-brand-static:hover,
.navbar-brand-static:focus,
.navbar-brand-static:active {
  color: inherit;
  text-decoration: none !important;
}

/* ==========================================================
   顶部导航栏配色
   蓝色背景：#0050A2
   红色文字：#E60011
   ========================================================== */
/*
.navbar {
  background-color: #0050A2 !important;
}
*/
/* 网站名称和导航链接 */
.navbar .navbar-brand,
.navbar .navbar-nav .nav-link {
  color: #E60011 !important;
}

/* 当前页面、鼠标悬停和键盘聚焦 */
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .show > .nav-link {
  color: #E60011 !important;
}

/* 搜索、工具栏和折叠菜单图标 */
.navbar .quarto-navigation-tool,
.navbar #quarto-search,
.navbar .aa-DetachedSearchButton,
.navbar .navbar-toggler {
  color: #E60011 !important;
  border-color: #E60011 !important;
}

/* Bootstrap 图标通常继承 currentColor */
.navbar svg,
.navbar i {
  color: #E60011 !important;
  fill: currentColor;
}

/* 当前页面用底部线条加以区分 */
.navbar .navbar-nav .nav-link.active {
  border-bottom: 2px solid #E60011;
}