* {box-sizing:border-box;}
@media screen and (max-width: 800px){
  body {margin: 2px;}
}
body {
  margin: 0;
  font-family: Verdana, sans-serif;
}

/* 横向规则*/
.xhr {
  color: #044a64;
  height: 2px;
}

/* .nosearch {
  margin-top: 10px;
} */
/* 中间部分字体居中 */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: justify;
}
.center-content {
  text-align: center;
  margin: 20px 0;
}
.download-section {
  margin: 20px 0;
}

/* Hyperlinks that look like buttons */
.button {
  background-color: #ddd;
  border: 2px solid #aaa;
  text-decoration: none;
  border-radius: 4px;
  padding: 0 1ex 0 1ex;
  white-space: nowrap;
  font-size: 90%;
  line-height: 150%;
  color: black;
}
.button:visited {
  color: black;
}

/* 屏幕右侧的侧边栏 */
.rightsidebar {
  padding-right: 1ex;
  margin: 1ex;
  float: left;
}

/* 边框 */
.border2px {
  border: 2px solid rgba(4, 74, 100, 0.8); /* 使用半透明颜色 */
  border-radius: 8px; /* 添加圆角 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
  padding: 10px; /* 增加内边距 */
}

.hdrfont {
  font-weight:bold;
  font-size:115%;
}
.nounderline a { text-decoration: none }

a { color: #044a64 }
a:visited { color: #734559 }

.logo {
  float: left;
  width: 180px;
  height: 80px;
  margin-top: -6px;
  margin-left: 2px;
}

.tagline {
  float:right;
  text-align:right;
  font-style:italic;
  width:300px;
  margin:12px;
  margin-top: 5px;
}

/* 主菜单和子菜单共有的风格 */
.menu::before {
  content: "";
  clear: both;     /* 清除徽标和标语 */
  display: block;
  margin-top: 0;   /* 减少与顶部的距离 */
}
.menu {
  display: flex; /* 使用flexbox布局 */
  justify-content: center; /* 水平居中对齐整个菜单 */
  align-items: center; /* 垂直居中对齐 */
  width: 100%; /* 确保菜单占据整个宽度 */
}
.menu ul {
  display: flex; /* 使用flexbox布局 */
  justify-content: center; /* 水平居中对齐列表项 */
  align-items: center; /* 垂直居中对齐 */
  list-style-type: none; /* 去掉列表样式 */
  padding: 0; /* 去掉内边距 */
  margin: 0; /* 去掉外边距 */
}

.menu ul li {
  margin: 0 10px; /* 列表项之间的间距 */
}

.menu ul li a {
  display: block; /* 使链接占据整个列表项 */
  text-align: center; /* 链接文本居中 */
  padding: 10px 15px; /* 内边距，增加点击区域 */
  color: white; /* 字体颜色 */
  text-decoration: none; /* 去掉下划线 */
}

/* 特定于主菜单的样式 */
.mainmenu ul {
  background-color: #044a64; /* 保持原有底色 */
  border-radius: 0; /* 移除圆角以确保背景色铺满 */
  width: 100%; /* 确保背景色占据整个宽度 */
  padding: 0;
}
.mainmenu ul li {
  float: left;
}
.mainmenu ul li.search {
  float: right;
}

/* 特定于子菜单的样式 */
.submenu {
  display: none;
}
.submenu ul {
  color: white;
}
.submenu ul li {
  float: none;
  border-radius: 8px;
  background-color: #0482c4;
  border-top: 2px solid white;
}

/* 搜索菜单的样式 */
.searchmenu {
  width: 100%;
  text-align: right;
  display: none;
  float: none;
  padding: 1ex;
  background-color: #0482c4;
  border-radius: 8px;
}

/* Add the "mobileonly" class to any elements that should be visible
** on narrow-screen mobile devices only */
@media screen and (min-width: 600px){
  /* Settings for wide desktop screens */
  .mobileonly {display: none;}
}
/* Add the "desktoponly" class to any elements that should be visible
** on desktops with at least 600 pixels of horizontal space. */
@media screen and (max-width: 600px){
  /* Settings for narrow mobile screens */
  .desktoponly {display: none;}
}
/* Add the "wideonly" class to any elements that should be visible
** on wide-screen desktops with  */
@media screen and (max-width: 800px){
  /* Settings for screens that are less than 800px wide */
  .wideonly {display: none;}
}

.content    { margin: 5%; }
.content dt { font-weight:bold; }
.content dd { margin-bottom: 25px; margin-left:20%; }
.content ul { padding:0px; padding-left: 15px; margin:0px; }

/* Things for "fancyformat" documents start here. */
.fancy img+p {font-style:italic}
.fancy .codeblock {
  display: table;
  border: 1px solid #80a796;
  padding: 1ex;
  background-color: #eee;
}
.fancy .codeblock pre {
  display: table-cell;
  font-size: 1em;
}
.fancy .codeblock i { color: darkblue; }
.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
.fancy th {text-align:left;border-bottom:solid 1px #444}
.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
.toct { color: #044a64 ! important; }
#toc_sub a        { color: #044a64; text-decoration: none }
#toc_sub { margin-top: 1em; }
.fancy .todo         { color: #AA3333 ; font-style : italic }
.fancy .todo:before  { content: 'TODO:' }
.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
.fancy img { display:block; }
.fancy :link:hover, .fancy :visited:hover { background: wheat }
.fancy_title {
  font-size: 2em;
  text-align: center;
  color: #044a64;
}
.fancy_toc {
  margin-top: 1em;
}
.fancy_toc > a,
.fancy_toc > summary {
  margin: 1em;
  margin-left: 0;
  font-size: 1.5em;
  color: #044a64;
  text-decoration: none;
  cursor: pointer;
}
@media screen and (min-width: 600px){
  /* Indentation amounts for non-mobile screens, 600 pixels or wider */
  .fancy p,.fancy ul,.fancy ol,.fancy dl { margin: 1em 5ex }
  .fancy li p { margin: 1em 0 }
  .fancy blockquote { margin-left : 10ex }
  .toct {margin-left:4ex;}
  .fancy-toc1 {margin-left:6ex;}
  .fancy-toc2 {margin-left:12ex;}
  .fancy-toc3 {margin-left:18ex;}
  .fancy-toc4 {margin-left:24ex;}
  .fancy-toc5 {margin-left:30ex;}
  .fancy-toc6 {margin-left:36ex;}
  .fancy .codeblock {margin:0 10ex;}
  .fancy ol .codeblock {margin:0 5ex;}
  .fancy .imgcontainer {margin: 1em 5ex}
}
@media screen and (max-width: 600px){
  /* Indentation amounts for narrow mobile screens */
  .toct {margin-left:0;}
  .fancy-toc1 {padding-left:4ex;text-indent:-2ex;}
  .fancy-toc2 {padding-left:8ex;text-indent:-4ex;}
  .fancy-toc3 {padding-left:12ex;text-indent:-6ex;}
  .fancy-toc4 {padding-left:16ex;text-indent:-8ex;}
  .fancy-toc5 {padding-left:20ex;text-indent:-10ex;}
  .fancy-toc6 {padding-left:24ex;text-indent:-12ex;}
  .lessindent {padding-left: 1em; margin-left: 0;}
  .fancy .codeblock {margin:0 1ex;}
}
/* End of "fancyformat" specific rules. */

/* <ul> elements used for multi-column lists */
.multicol_list {padding-left:1em;margin-left:0;}

.yyterm {
  background: #fff;
  border: 1px solid #000;
  border-radius: 11px;
  padding-left: 4px;
  padding-right: 4px;
  line-height: 125%;
}
.yynonterm {
  background: #fff;
  border: 1px solid #000;
  padding-left: 2px;
  padding-right: 2px;
  line-height: 125%;
}

/* Container for an image */
.imgcontainer img {
  max-height: 100%;
  max-width: 100%;
}

/* Default fill and stroke for SVG paths */
polygon { fill: black; stroke:#111111; stroke-width:1 }
path { fill: none; stroke:#111111; stroke-width:1 }

.doccat a {
  color: #044a64 ;
  text-decoration: none;
}
.doccat h {
  font-weight: bold;
}
.doccat h a {
  font-size: smaller;
  color: black;
}
.doccat {
  padding-left: 2ex;
  padding-right: 2ex;
  white-space:nowrap;
}
.doccat li {
  list-style-type: none;
  font-size: smaller;
  line-height: 150%; 
}
.doccat ul {
  margin-top: 0.5em;
}

.footer {
  padding-top: 2px;
  padding-bottom: 1px;
  border-top: 2px solid #044a64;
}

th.sort:after {
  margin-left: .4em;
  cursor: pointer;
  text-shadow: 0 0 0 #000; /* Makes arrow darker */
}
th.sort.none:after {
  content: '\2666';
}
th.sort.asc:after {
  content: '\2193';
}
th.sort.desc:after {
  content: '\2191'
}

div.columns {
  padding: 0 2em 0 2em;
  max-width: 2000px;
}
div.columns > ul {
  margin: 0;
  padding: 0 0 0 1em;
  list-style-type: none;
  padding: 10px;
  margin: 0px;
  white-space: nowrap;
}
div.columns > ul li:first-child {
  margin-top:0px;
}
.columns li {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* 图片二维码 */
.container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content {
  width: 60%;
}

/* 新增二维码容器样式 */
.qrcode-box {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 15px; /* 二维码间距 */
}

.qrcode {
  width: 100%;
  border: 1px solid #eee; /* 浅色边框 */
  border-radius: 8px;
  padding: 5px;
  box-sizing: border-box;
}

.qrcode img {
  width: 100%;
  height: auto;
  display: block;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .container {
      flex-direction: column;
  }
  .content, .qrcode-box {
      width: 100%;
  }
  .qrcode-box {
      margin-top: 20px;
      flex-direction: row; /* 手机端横向排列 */
      justify-content: space-between;
  }
  .qrcode {
      width: 30%;
  }
}
/* 添加一个访问量计数器 */
.visitor-count {
  font-size: 1.2em;
  color: #044a64;
  font-weight: bold;
}
/* 图片 */
.qrcode-container {
  display: flex; /* 使用flexbox布局 */
  justify-content: flex-start; /* 将内容靠左对齐 */
  align-items: center; /* 垂直居中对齐 */
  gap: 10px; /* 图片之间的间距 */
  margin-left: 20px; /* 与文字的间距 */
}

.qrcode {
  width: 136px; /* 设置图片宽度 */
  height: 136px; /* 设置图片高度 */
}


