/* ================================================================
   css.txt —— HAProxy 风格 Fossil 皮肤（贴近官网视觉）
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.haproxy-skin {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 12px;
  line-height: 1.35;
  color: #000;
  background: #fff;
}
body.haproxy-skin a           { color: #0000EE; text-decoration: underline; }
body.haproxy-skin a:visited   { color: #551A8B; }
body.haproxy-skin a:hover     { color: #EE0000; }

/* --- 顶部品牌区：纯深蓝底 + 白字标题 --- */
.site-top {
  background: #1E3052;
  color: #fff;
  padding: 6px 14px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #000;
}
.site-top .brand       { display: flex; align-items: flex-start; gap: 14px; }
.site-top .brand-text  { padding-top: 2px; }
.site-top h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.site-top .tagline {
  margin: 2px 0 0;
  font-size: 12px;
  color: #d8dff0;
  font-style: italic;
  font-family: "Times New Roman", Times, serif;
}
.site-top .logo        { height: 38px; display: block; }
.site-top .logo-link   { line-height: 0; }
.site-top .brand-meta  { font-size: 11px; color: #c0c8e0; text-align: right; padding-top: 4px; max-width: 38%; }
.site-top .proj-desc   { margin: 0; }

/* --- 顶部横向导航：HAProxy 没有，隐藏 --- */
.mainmenu { display: none; }

/* --- 两栏布局：窄侧栏 + 宽正文 --- */
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 14px;
  max-width: none;
  margin: 0;
}

/* --- 左侧 Quick links：纯文本、无框、极紧凑 --- */
.sidebar {
  font-size: 11px;
  line-height: 1.45;
  padding: 2px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sidebar h3 {
  margin: 8px 0 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}
.sidebar h3:first-of-type { margin-top: 0; }
.sidebar ul   { list-style: none; margin: 0 0 4px; padding: 0; }
.sidebar li   { margin: 0; padding: 0; white-space: nowrap; }
.sidebar li a { color: #0000EE; text-decoration: underline; }
.sidebar p    { margin: 2px 0; color: #333; font-size: 11px; }

/* --- 主正文 --- */
.content { min-width: 0; font-size: 12px; }

/* --- 章节标题：钢蓝条，白字，HAProxy 风 --- */
.content h2,
.content .section,
.section {
  background: #5E7F9A;
  color: #ffffff;
  padding: 3px 10px;
  margin: 12px 0 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.2px;
  border: none;
}
.content h2 a,
.content h2 a:visited {
  color: #ffffff;
  text-decoration: none;
}
.content h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
  margin: 8px 0 2px;
  font-weight: bold;
}
.content p { margin: 4px 0 6px; text-align: left; }

/* --- 表格：细线、浅蓝表头、紧凑 --- */
.content table {
  border-collapse: collapse;
  border: 1px solid #666;
  font-size: 11px;
  margin: 4px 0 10px;
  width: auto;
}
.content th, .content td {
  border: 1px solid #9aa6b8;
  padding: 2px 8px;
  vertical-align: top;
  text-align: left;
}
.content th {
  background: #c8d4e3;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}
.content tr:nth-child(even) td { background: #f4f7fb; }

/* --- 列表 --- */
.content ul  { padding-left: 20px; margin: 4px 0 8px; }
.content li  { margin: 1px 0; }

/* --- 模块块（首页 section.module） --- */
.module { margin: 0 0 10px; padding: 0; }

/* --- iframe --- */
.include-frame {
  width: 100%;
  border: none;
  display: block;
  background: #fff;
  min-height: 120px;
}

/* --- News 列表 --- */
.news-list         { padding-left: 18px; }
.news-list li      { margin-bottom: 4px; }
.news-list .date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: #555;
  margin-right: 6px;
  white-space: nowrap;
}

/* --- 代码 / 引用 --- */
pre, code, kbd, samp {
  font-family: "DejaVu Sans Mono", Consolas, Menlo, monospace;
  font-size: 11px;
}
code { background: #f4f4ee; padding: 0 3px; border: 1px solid #e4e4d4; }
pre  { background: #f4f4ee; border: 1px solid #d8d8c4; padding: 6px 8px; overflow: auto; }
blockquote { border-left: 3px solid #9fb0c4; margin: 4px 0; padding: 2px 10px; background: #f7f9fc; }

/* --- 页脚 --- */
.site-foot {
  border-top: 1px solid #888;
  background: #fff;
  padding: 8px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: #555;
  text-align: left;
}
.site-foot p         { margin: 1px 0; }
.site-foot strong    { color: #000; }

/* --- Fossil 原生组件覆盖 --- */
.submenu {
  background: #eef2f7;
  border: 1px solid #c8d0da;
  padding: 3px 6px;
  margin: 4px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}
.submenu a, .submenu label { font-family: Arial, Helvetica, sans-serif; font-size: 11px; }
.timelineTable, .timelineTable td, .timelineTable th { font-size: 11px; }
.fileage th, .fileage td                              { font-size: 11px; }
.label                                                { font-family: Arial, Helvetica, sans-serif; font-size: 11px; }

/* --- 响应式 --- */
@media (max-width: 640px) {
  .layout   { grid-template-columns: 1fr; }
  .site-top { flex-wrap: wrap; text-align: left; }
  .sidebar  { border: 0; padding-bottom: 8px; }
}
