/* 中文帮助站点的补充样式：沿用 Flare 皮肤，仅修正中文字体与离线导航 */

body,
p,
li,
td,
th,
input,
select,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
}

#mc-main-content p,
#mc-main-content li {
  line-height: 1.85;
}

#mc-main-content h1,
#mc-main-content h2,
#mc-main-content h3,
#mc-main-content h4 {
  line-height: 1.45;
}

#mc-main-content table {
  border-collapse: collapse;
  margin: 1.2em 0;
  max-width: 100%;
}

#mc-main-content table th,
#mc-main-content table td {
  border: 1px solid #c9ccd0;
  padding: 7px 11px;
  vertical-align: top;
}

#mc-main-content table th {
  background: #eef1f5;
  font-weight: bold;
}

/* 原站顶部导航由脚本按屏幕宽度决定，桌面端实际不显示，这里保持一致 */
.navigation-wrapper {
  display: none;
}

/* 页首品牌标识：以内联 SVG 替换原 Lumivero 背景图 */
.title-bar-layout a.logo.brand-link {
  width: auto;
  height: auto;
  background: none;
  background-image: none;
  display: flex;
  align-items: center;
  padding: 0;
}

.title-bar-layout a.logo.brand-link:hover {
  opacity: 0.85;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
}

.title-bar-layout a.brand-site-link {
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-left: 14px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.title-bar-layout .logo-wrapper {
  align-items: center;
}

.title-bar-layout a.brand-site-link:hover {
  color: #0f2e2b;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .title-bar-layout a.brand-site-link {
    font-size: 16px;
    margin-left: 10px;
  }
}

/* 首页页脚品牌 */
.home-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 6px 0;
}

.home-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.home-footer a.footer-brand-link {
  display: flex;
  align-items: center;
}

.home-footer a.footer-site-link {
  font-size: 16px;
  font-weight: 700;
  color: #f6f4ee;
  text-decoration: none;
  white-space: nowrap;
}

.home-footer a.footer-site-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home-brand {
    justify-content: flex-start;
  }
}

ul.navigation {
  display: block;
}

ul.navigation ul {
  display: none;
  visibility: visible;
  opacity: 1;
}

ul.navigation li:hover > ul {
  display: block;
}

ul.navigation > li > a,
ul.navigation ul a {
  cursor: pointer;
}

/* 侧边栏手风琴：只展开当前主题所在路径 */
ul.sidenav {
  display: block;
}

ul.sidenav ul.is-accordion-submenu {
  display: none;
}

ul.sidenav li.is-expanded > ul.is-accordion-submenu {
  display: block;
}

ul.sidenav li > a.selected {
  font-weight: bold;
  color: #ffffff;
  background-color: #303335;
}

ul.sidenav li.is-current > a {
  box-shadow: inset 3px 0 0 #b9bec1;
}

ul.sidenav .submenu-toggle-container {
  cursor: pointer;
}

/* 面包屑 */
.MCBreadcrumbsBox_0 {
  padding-top: 5px;
  font-size: 14px;
}

.MCBreadcrumbsBox_0 a {
  color: #16599b;
  font-weight: bold;
  text-decoration: underline;
}

.MCBreadcrumbsBox_0 a:hover {
  text-decoration: underline;
}

.MCBreadcrumbsBox_0 .breadcrumb-sep {
  color: #45494c;
  margin: 0 0.45em;
}

.MCBreadcrumbsBox_0 .breadcrumb-current {
  color: #45494c;
  font-weight: bold;
}

/* 上一页 / 下一页按钮 */
div.pagenav-header .button {
  display: inline-block;
  width: 36px;
  height: 36px;
  min-width: 36px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid #c4c8cc;
  border-radius: 3px;
  vertical-align: middle;
  text-decoration: none;
}

div.pagenav-header .button > div,
div.pagenav-header .button-icon-wrapper,
div.pagenav-header .button-icon {
  width: 100%;
  height: 100%;
}

div.pagenav-header .button-icon {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

div.pagenav-header .button[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* 图与图注 */
div.figure {
  margin: 0 0 1.4em 1.5em;
  max-width: 100%;
}

div.figure::after {
  content: "";
  display: table;
  clear: both;
}

div.figure > p {
  margin: 0;
}

div.figure img {
  max-width: 100%;
  height: auto;
}

div.figure p.figurecount {
  font-size: 13px;
  line-height: 1.5;
  color: #3c3f42;
  margin: 6px 0 0;
}

/* 无浮动信息的独立图片 */
#mc-main-content p.doc-image {
  text-align: center;
}

/* 提示框内容 */
[class^="callout"] p {
  font-size: 11.5pt;
}

[class^="callout"] ul {
  padding-left: 42px;
  margin: 8px 0;
}

/* 搜索建议 */
.nav-search {
  position: relative;
}

.nav-search-results {
  display: none;
  position: absolute;
  top: 2.2em;
  right: 0;
  width: 460px;
  max-width: 92vw;
  max-height: 60vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #c9ccd0;
  border-top: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 5000;
}

.nav-search-results.open {
  display: block;
}

.nav-search-results a {
  display: block;
  padding: 9px 14px;
  color: #22324a;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  border-bottom: 1px solid #eef1f5;
}

.nav-search-results a:last-child {
  border-bottom: none;
}

.nav-search-results a:hover,
.nav-search-results a.active {
  background: #eef4fb;
}

.nav-search-results .search-empty {
  padding: 12px 14px;
  color: #6b7076;
  font-size: 14px;
}

/* 首页 */
html.home-topic .body-container {
  padding-top: 0;
}

div.home-layout {
  padding-top: 20px;
}

div.home-layout h1 {
  font-size: 32px;
}

div.home-tiles > div p {
  margin-top: 8px;
}

/* 打印 */
@media print {
  .sidenav-wrapper,
  .title-bar-container,
  .pagenav-header,
  .nav-search-results {
    display: none !important;
  }

  .body-container {
    padding: 0;
  }
}