:root {
  --main: #3072a9;
  --main-hard: #104a7a;
  --main-hover: #38a5f3;
  --theme-main: #9e52cd;
  --main-bg: #ffffff;
  --bg-color1: #f2ecf7;
  --bg-color2: #cabbf5;
  --bg-color3: #f5f5f5;
  --border: #aed0ea;
  --box-title: #cce5ff;
  --post-background: #dceaf6;
  --post-shadow: #c5c1cb;
}

dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
blockquote,
th,
td {
  margin-top: 0.15em;
  margin-bottom: 0.25em;
}

p {
  margin-top: 0.1em;
  margin-bottom: 0.35em;
}

html {
  background: repeating-linear-gradient(135deg,
      var(--bg-color3) 0%,
      var(--bg-color3) 25%,
      transparent 25%,
      transparent 50%,
      var(--bg-color3) 50%,
      var(--bg-color3) 75%,
      transparent 75%,
      transparent 100%);
  background-size: 10px 10px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #00000000;
  display: flex;
  flex-direction: column;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  flex: 1;
  justify-content: space-between;
  font-weight: 400;
  min-height: 100%;
  align-items: center;
  margin: 0;
  font-size: 11pt;
}

.main {
  background-color: var(--main-bg);
  box-shadow: 0px 0px 10px 0px var(--post-shadow);
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  flex: 1;
}

a {
  color: var(--main);
  text-decoration: none;
  text-decoration-style: solid;
  text-underline-offset: 0.1em;
}

a:hover {
  color: var(--main-hover);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 0.1em;
}

.header {
  background: linear-gradient(180deg, #ffffff 32%, #f5e7fd 100%);
  padding: 5px 10px;

  h1 {
    margin: 7px 0 8px 0;
  }

  .tld {
    font-weight: 400;
    color: #4e1a8e;
  }
}

.container-center {
  color: #415159;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 15px;
}

footer {
  padding: 5px 10px;
  background-color: #f1f9fe;
}

.topicbar {
  background: linear-gradient(90deg, #e7f3fd 65%, #ffffff 100%);
}

.topicbar:target {
  border: 2px solid #ffd700;
  /* 金色边框 */
  box-shadow: 0 0 10px rgb(255, 217, 0);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  border-top: solid 1px #ffffff;
  border-bottom: solid 1px #ebf0f2;
  background: linear-gradient(180deg, #f9fafb 35%, #edf5f8 99%);

  span,
  a {
    padding: 5px 0;
    color: var(--main);
  }

  div a {
    padding: 5px 5px;
  }

  div a:hover {
    color: var(--main-hover);
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 0.1em;
  }
}

.metalabel {
  margin-right: 10px;
}

.alertbox {
  border: 2px solid #ffd700;
  background-color: #fff8dc;
  padding: 5px;
}

.table-wrapper {
  overflow-x: auto;
  /* 横向滚动 */
  -webkit-overflow-scrolling: touch;
  /* iOS 弹性滚动 */
  /* 给一个稍微的内边距，让滚动条不紧贴表格 */
  padding-bottom: 0.5rem;
}

/* styled-table 类选择器，用于你的表格 */
.styled-table {
  border-collapse: collapse;
  width: max-content;
  /* 表格宽度随内容撑开，而不是 100% */
  min-width: 100%;
  /* 使表格宽度占满父容器 */
  border-collapse: collapse;
  /* 合并单元格边框 */
  font-size: 0.9em;
  /* 字体大小 */
  margin: 0.1em 0 0.35em 0;
  overflow-x: auto;
}

/* 表头样式 */
.styled-table thead tr {
  background-color: var(--theme-main);
  /* 表头背景色 */
  color: var(--main-bg);
  /* 表头文字颜色 */
  text-align: left;
  /* 文字左对齐 */
}

/* 表头单元格和数据单元格的通用样式 */
.styled-table th,
.styled-table td {
  padding: 5px 15px;
  /* 内边距 */
  border: 1px solid #dddddd;
  /* 边框 */
}

/* 条带色填充 (奇数行和偶数行) */
.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
  /* 偶数行背景色 */
}

.styled-table tbody tr:nth-of-type(odd) {
  background-color: #ffffff;
  /* 奇数行背景色 (可以省略，默认为白色) */
}

/* 鼠标悬浮时行高亮 */
.styled-table tbody tr:hover {
  background-color: #e8f5fb;
  /* 鼠标悬浮时的背景色 */
}

/* 如果表格有底部，可以添加一些样式 */
.styled-table tfoot td {
  font-weight: bold;
}

/* 移除最后一行底部的边框，让表格看起来更整洁 */
.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--theme-main);
}

.sticky-header th {
  position: sticky;
  /* 关键点 */
  top: 0;
  /* 与视口顶部对齐 */
  z-index: 3;
  /* 必须大于普通单元格的 z-index */
}

.post {
  border: 1px solid var(--border);
  border-radius: 5px;
  background-color: #fff;
  background: linear-gradient(#ffffff 50%, #f7fbfe);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.confdesc {
  word-wrap: break-word;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dimed-text {
  color: #888;
}

ul {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
}

@font-face {
  font-family: 'icomoon';
  font-display: swap;
  src: url('/fonts/icomoon.eot?3cjh27');
  src: url('/fonts/icomoon.eot?3cjh27#iefix') format('embedded-opentype'),
    url('/fonts/icomoon.ttf?3cjh27') format('truetype'),
    url('/fonts/icomoon.woff?3cjh27') format('woff'),
    url('/fonts/icomoon.svg?3cjh27#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  font-display: swap;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-exclamation-triangle:before {
  content: "\e900";
}

.icon-hashtag:before {
  content: "\e901";
}

.icon-question-circle:before {
  content: "\e902";
}

.icon-layers:before {
  content: "\e903";
}

.icon-database:before {
  content: "\e964";
}

.icon-list:before {
  content: "\e9ba";
}

.icon-earth:before {
  content: "\e9ca";
}

.icon-flag:before {
  content: "\e9cc";
}

.icon-arrow-up2:before {
  content: "\ea3a";
}

.icon-arrow-left2:before {
  content: "\ea40";
}

.icon-rss2:before {
  content: "\ea9c";
}