/* 引用块 */
BLOCKQUOTE.q {
  font-family: '新宋体', '微软雅黑', Consolas, Monaco, 'Andale Mono', monospace;
  font-size: small;
  font-style: normal;
  background-color: #ffffd0;
  padding-left: 1ex;
  padding-top: 1ex;
  padding-right: 1ex;
  padding-bottom: 1ex;
  border-bottom: #808080 1px solid;
  border-left: #808080 1px solid;
  border-top: #808080 1px solid;
  border-right: #808080 1px solid;
  border-radius: 0.5em;
  -moz-border-radius: 0.5em;
  -webkit-border-radius: 0.5em;
}

/* 博客页脚 */
BLOCKQUOTE.footer {
  font-style: normal;
  padding-left: 22%;
  padding-top: 1ex;
  padding-right: 1ex;
  padding-bottom: 1ex;
}

/* ZOJ (pintia.cn) 代码样式，为了不增加行间距，字体缩小了一些 */
.zoj-code-inline {
  background: hsl(211, 20%, 97%);
  border-radius: 0.1875rem;
  border: 1px solid hsla(0, 0%, 0%, 0.06);
  color: #e74c3c;
  margin: 0 0.125em;
  white-space: unset;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
}

/*OJ (pintia.cn) 代码样式，未设置字体大小 */
.zoj-code {
  background: hsl(211, 20%, 97%);
  border-radius: 0.1875rem;
  border: 1px solid hsla(0, 0%, 0%, 0.25);
  color: black;
  margin: 0 0.125em;
  padding: 0.6em 0.6em 0.6em 0.6em; /* 内容距离边框的距离。顺序：上右下左 */
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.code-noborder {
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 模拟键盘按键的外观 */
.KBD {
  /*border-top: buttonhighlight 1px solid; */
  border-top: #fff 1px solid;
  /*border-right: buttonshadow 2px solid; */
  border-right: #808080 2px solid;
  /*border-bottom: buttonshadow 1px solid;*/
  border-bottom: #808080 1px solid;
  /*border-left: buttonhighlight 2px solid;*/
  order-left: #fff 2px solid;
  background-color: buttonface;
  padding-top: 1px;
  padding-right: 4px;
  padding-bottom: 1px;
  padding-left: 4px;
}

/* Mozilla: refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd */
/* add on 2025-03-28 */
.KBD_MDN {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

/* 键盘按键：copied from: https://en.wikipedia.org/wiki/Keyboard_layout */
.KBDWIKI {
  border: 1px solid #aaa;
  border-radius: 0.2em;
  box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
  background-color: #f9f9f9;
  background-image: linear-gradient(to bottom,#eee,#f9f9f9,#eee);
  color: #000;
  padding: 0.1em 0.3em;
  font-family: inherit;
  font-size: 0.85em;
}

/* 键盘按键：copied from: https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences */
/* -- add on 2024-03-28 18:58 (UTC+8) */
.KBD_MSDN {
  color: #161616;
  vertical-align: middle;
  background-color: #fff;
  border: solid 1px #a2a2a2;
  border-bottom-color: #a2a2a2;
  box-shadow: inset 0 -1px 0 #0000004d;
  border-radius: .25rem;
  padding-left: .2rem;
  padding-top: 0;
  padding-right: .2rem;
  padding-bottom: 0;
  font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
  font-size: .75rem;
  line-height: 10px;
  display: inline-block;
}

/* 键盘按键：copied from: https://superuser.com/questions/1729472/unable-to-use-ansi-escape-sequences-in-windows-10 */
/* -- add on 2024-03-28 18:58 (UTC+8) */
.KBD_SUPERUSER {
  display: inline-block;
  margin: 0 .1em;
  padding: .1em .6em;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif;;
  font-size: 11px;
  line-height: 1.4;
  color: hsl(210,8%,5%);
  text-shadow: 0 1px 0 hsl(0,0%,100%);
  background-color: hsl(210,8%,90%);
  border: 1px solid hsl(210,8%,68%);
  border-radius: 3px;
  box-shadow: 0 1px 1px hsla(210,8%,5%,0.15),inset 0 1px 0 0 hsl(0,0%,100%);
  white-space: nowrap;
}

/* copied from: https://www.processlibrary.com/en/directory/files/uxtheme/28281/ */
/* add on 2024-04-02 00:07 (UTC+8) */
.KBD_PROCESSLIBRARY {
  font: 15px sans-serif;
  color: #353535;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 5px;
  margin: 0 0.1em;
  white-space: nowrap;
}

/* copied from: https://www.v2fly.org/config/routing.html */
/* add on 2024-04-02 15:43 (UTC+8) */
.KBD_V2FLY {
  align-items: center;
  background: linear-gradient(-225deg,#d5dbe4,#f8f8f8);
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30,35,90,.4);
  color: #999999;
  /* display: flex; */
  font-size: .75em;
  /* height: 1em; */
  justify-content: center;
  margin-left: .5em;
  margin-right: .5em;
  /* min-width: 60px; */ /* 貌似只对 div 元素有效 */
  position: relative;
  padding: 0.2em 0.4em 0.22em 0.4em; /* order: top right bottom left */
  border: 0;
  top: -1px;
  /* width: 20px; */ /* 貌似只对 div 元素有效 */
}

/* copied from: https://help.ubuntu.com/stable/ubuntu-help/shell-overview.html.en */
/* add on 2024-05-20 16:55 (UTC+8) */
.KBD_UBUNTU {
  /* background-color: #e5e5e5; */
  background-color: rgb(244,244,244);
  border: solid 1px rgb(43,107,185);
  border-radius: 3px;
  color: rgb(43,107,185);
  -moz-box-shadow: 1px 1px 1px #aaaaaa;
  -webkit-box-shadow: 1px 1px 1px #aaaaaa;
  box-shadow: 1px 1px 1px #aaaaaa;
  margin: 0 0.4em 0 0.4em;  /* 边框距离周围元素的距离。顺序：上右下左 */
  padding: 0 0.3em 0 0.3em; /* 内容距离边框的距离。顺序：上右下左 */
  font-family: "Ubuntu", "Ubuntu Beta", "Bitstream Vera Sans", DejaVu Sans, Tahoma, sans-serif;
  font-weight: bold;
  white-space: nowrap;
}

/* 自定义表格外观 */
.CustomizedTable {
  border: 2px solid black;
  border-collapse: collapse;
  font-family: Arial,新宋体,微软雅黑,Consolas,monospace;
  font-size: 1rem;
}

.CustomizedTable th {
  background-color: #A7C942;
}

.CustomizedTable tr.alt td {
  background-color: #EAF2D3;
}

/* 自定义表格外观-v2 */
.TABLE2 {
  border: 1px solid gray;
  border-collapse: collapse;
  /*border-radius: 5px;*/
  /*width: 100%;*/
}

.TABLE2 th {
  /*background-color: #A7C942;*/
  border: 1px solid gray;
  border-collapse: collapse;
  text-align: left;
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 4px;
  padding-right: 4px;
}

.TABLE2 td {
  /*background-color: #EAF2D3;*/
  border: 1px solid gray;
  border-collapse: collapse;
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 4px;
  padding-right: 4px;
}

/*偶数行的背景色 */
/*
.TABLE2 tr:nth-child(even) {
  background-color: rgba(250, 250, 250, 0.5);
}
*/
/*
.TABLE2 tr:nth-child(even) {
  background-color: rgba(150, 212, 212, 0.4);
}
*/

/* 以下样式从 pintia.cn (ZOJ) 复制 */
.pc-list {
  border: 1px solid hsla(0, 0%, 0%, 0.06);
  border-radius: 4px;
  background-color: hsla(211, 20%, 97%, 0.6);
  /* padding 指定两个值时，第一个值会应用于上边和下边的内边距，第二个值应用于左边和右边。*/
  padding: 4px 4px; /*上-右-下-左*/
  display: flex;
  flex-direction: column; /*从上到下排列子元素*/
}

.item_nmQAb {
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%
}

.pc-text {
  display: flex;
  min-width: 0;
  align-items: center;
  color: hsl(0, 0%, 45%)
}

/* 我自己定义的类，右对齐，写作者等信息。 pc: parent container. */
.pc-right-aligned {
  /* padding 指定两个值时，第一个值会应用于上边和下边的内边距，第二个值应用于左边和右边。*/
  padding: 4px 4px; /*上-右-下-左*/
  display: flex;
  flex-direction: row; /*从左到右排列子元素*/
  flex-wrap: nowrap; /*不换行*/
  justify-content: flex-end; /*重要：子元素右对齐*/
  align-items: center; /*子元素在垂直轴上居中对齐*/
}
