:root {
  --md-primary-fg-color: #332C2B;
  --md-primary-fg-color--light: #4a4341;
  --md-primary-fg-color--dark: #1f1b1a;
  --md-accent-fg-color: #F08519;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1f1b1a;
  --md-primary-fg-color--light: #332C2B;
  --md-primary-fg-color--dark: #0d0c0b;
  --md-accent-fg-color: #F08519;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图片居中 + 缩小到 80% */
.md-typeset figure {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.md-typeset figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* width: 80%; */
  border-radius: 0.4rem;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

[data-md-color-scheme="slate"] .md-typeset figure img {
  outline: 1px solid var(--md-default-fg-color--lightest);
  outline-offset: -1px;
}

.md-typeset figure figcaption {
  text-align: center;
}

/* 表格居中 + 自适应宽度 */
.md-typeset__table {
  display: flex;
  justify-content: center;
}

.md-typeset .md-typeset__table table {
  width: auto;
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.md-typeset table th,
.md-typeset table td {
  text-align: center;
}

.md-typeset table th:last-child,
.md-typeset table td:last-child {
  text-align: left;
}

.md-typeset table th {
  background-color: #e3f2fd;
}

[data-md-color-scheme="slate"] .md-typeset table th {
  background-color: #1a3a5c;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 页面底部联系方式：左右双栏（左信息 / 右二维码），节省垂直空间 */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.contact-section__info {
  text-align: left;
}

.contact-section__info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.contact-section__info p {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--md-default-fg-color--light);
}

.contact-section figure {
  display: block;
  margin: 0;
}

.contact-section figure img {
  width: 120px;
  border-radius: 0.4rem;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 页脚右侧 ICP 备案号（占据 Material 默认 social 区位置，靠右悬挂） */
.md-footer-icp {
  margin-left: auto;
  padding: 0 0.4rem;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--lighter);
}

.md-footer-icp a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.md-footer-icp a:hover {
  color: var(--md-accent-fg-color);
  text-decoration: underline;
}

/* 顶部 logo：logo-1 为「图标 + ESRIO 文字」完整横向 logo（白色文字适配深色 header）。
   实测 2.8rem 时 logo 内 ESRIO 字高约为站点标题 ESRIO 的 1.5 倍，按比例缩到
   1.87rem 使二者字高一致。若仍偏差，等比例微调 height（每 ±0.1rem ≈ ±1.4px 字高）。 */
.md-header__button.md-logo img {
  height: 1.87rem;
}

.md-header__button.md-logo {
  margin-right: 0.5rem;
}
