/* 与主站 assets/premium.css 的导航保持一致，作用域仅限资料中心导航。 */
.m-header, .m-dialog { font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }
.m-header *, .m-dialog * { box-sizing: border-box; }
.m-header { box-sizing: border-box; position: sticky; top: 0; z-index: 30; height: 76px; background: #fff; border-bottom: 1px solid #e9e9e9; backdrop-filter: none; box-shadow: none; }
.m-header.m-scrolled { box-shadow: 0 2px 8px #3b3b3b0a; }
.m-inner { width: min(1200px, calc(100% - 80px)); max-width: none; height: 100%; margin: auto; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.m-brand { display: block; flex-shrink: 0; }
.m-brand img { display: block; width: 210px; height: auto; filter: none; }
.m-nav { display: flex; align-items: center; gap: 24px; height: 100%; margin-left: auto; }
.m-nav a { display: flex; align-items: center; color: #3b3b3b; font-size: 13px; font-weight: 400; white-space: nowrap; text-decoration: none; opacity: 1; }
.m-nav > a, .m-drop-link { position: relative; height: 100%; padding: 0; }
.m-nav a:hover, .m-nav a[aria-current] { color: #111; font-weight: 700; }
.m-nav > a::after, .m-drop-link::after { content: ''; position: absolute; bottom: 19px; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: #181818; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.m-nav > a::after, .m-drop-link::after { display: none; }
.m-drop { display: flex; align-items: center; height: 100%; position: relative; }
.m-drop-link { gap: 4px; }
.m-caret { opacity: .65; }
.m-menu { position: absolute; top: calc(100% - 12px); left: 50%; z-index: 70; display: flex; flex-direction: column; gap: 1px; min-width: 148px; padding: 7px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); background: #fff; border: 1px solid #e9e9e9; border-radius: 4px; box-shadow: 0 6px 18px #3b3b3b12; }
.m-drop:hover .m-menu, .m-drop:focus-within .m-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.m-menu a { height: auto; padding: 9px 13px; line-height: 1.2; border-radius: 4px; }
.m-menu a:hover { background: transparent; }
.m-contact { flex-shrink: 0; margin: 0; padding: 10px 18px; font-weight: 600; font-family: inherit; font-size: 12px; line-height: normal; color: #fff; background: #181818; border: 1px solid #181818; border-radius: 4px; box-shadow: none; cursor: pointer; }
.m-contact:hover { color: #fff; background: #000; box-shadow: none; transform: none; }
.m-burger { display: none; flex-shrink: 0; border: 0; background: transparent; cursor: pointer; }
.m-dialog { box-sizing: border-box; width: min(460px, calc(100% - 40px)); padding: 32px; border: 1px solid #e9e9e9; border-radius: 5px; background: #fff; color: #3b3b3b; text-align: center; }
.m-dialog::backdrop { background: #3b3b3b7d; }
.m-dialog h2 { padding: 0; margin: 0 0 10px; border: 0; font-size: 23px; font-weight: 500; }
.m-dialog p { margin: 10px 0; font-size: 13px; color: #707070; }
.m-dialog-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 3px; background: #f4f4f2; color: #737373; font-size: 24px; cursor: pointer; }
.m-qr { display: block; width: 235px; max-width: 100%; height: auto; margin: 20px auto; }
.m-call { display: inline-block; padding: 12px 22px; background: #181818; color: #fff; border-radius: 4px; font-size: 13px; text-decoration: none; }
.m-contact-tools { display: flex; justify-content: center; gap: 16px; margin: 20px 0 0; }
.m-contact-tools a, .m-contact-tools button { color: #606060; font: inherit; font-size: 12px; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.m-header :focus-visible, .m-dialog :focus-visible { outline: 2px solid #0964a5; outline-offset: 4px; }
@media (max-width: 1100px) {
  .m-nav { gap: 17px; }
  .m-brand img { width: 188px; }
  .m-inner { gap: 18px; }
}
@media (max-width: 900px) {
  .m-inner { width: calc(100% - 48px); }
  .m-brand img { width: 170px; }
  .m-nav { gap: 13px; }
  .m-nav a { font-size: 12px; }
  .m-contact { padding-inline: 13px; }
}
@media (max-width: 850px) {
  :root, html[data-theme='dark'] { --navbar-height: 66px; }
  .m-header { height: 66px; }
  .vp-sidebar { top: 66px !important; }
  .m-contact { margin-left: auto; }
  .m-burger { display: grid; place-items: center; width: 36px; height: 36px; padding: 6px; color: #575757; }
  .m-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; height: auto; max-height: calc(100dvh - 66px); overflow-y: auto; margin: 0; padding: 10px 24px 18px; background: #fff; border-bottom: 1px solid #e9e9e9; }
  .m-nav.m-expanded { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .m-nav a { min-height: 42px; padding: 10px; font-size: 13px; }
  .m-nav a::after { display: none; }
  .m-drop { display: block; width: 100%; height: auto; }
  .m-caret { display: none; }
  .m-menu, .m-drop:hover .m-menu, .m-drop:focus-within .m-menu { display: grid; position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 3px 16px; background: none; }
  .m-menu a { font-size: 12px; color: #737373; }
}
@media (max-width: 650px) {
  .m-inner { width: calc(100% - 40px); gap: 10px; }
  .m-brand img { width: 160px; }
  .m-contact { padding: 9px 11px; font-size: 11px; }
}
@media (max-width: 380px) { .m-brand img { width: 139px; } }

/* 第二层为资料中心原有栏目，独立于主站导航。 */
:root, html[data-theme='dark'] { --navbar-height: 130px; }
.vp-sidebar { top: 130px !important; }
.m-doc-bar { position: sticky; top: 76px; z-index: 29; box-sizing: border-box; height: 54px; background: #fafaf9; border-bottom: 1px solid #e5e5e2; font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; }
.m-doc-inner { width: min(1200px, calc(100% - 80px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 32px; }
.m-doc-title { color: #202020; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.m-doc-links { display: flex; align-items: center; gap: 28px; height: 100%; margin-left: auto; }
.m-doc-links a, .m-doc-group summary { color: #606060; font-size: 12px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.m-doc-links > a { display: flex; align-items: center; height: 100%; }
.m-doc-links a:hover, .m-doc-links a[aria-current], .m-doc-group[data-current] summary,
.m-doc-group summary:hover, .m-doc-group[open] summary { color: #111; font-weight: 700; }
.m-doc-group { position: relative; height: 100%; }
.m-doc-group summary { display: flex; align-items: center; gap: 8px; height: 100%; cursor: pointer; list-style: none; }
.m-doc-group summary::-webkit-details-marker { display: none; }
.m-doc-dropdown { position: absolute; top: calc(100% - 1px); left: -14px; min-width: 160px; padding: 8px; background: #fff; border: 1px solid #e5e5e2; border-radius: 4px; box-shadow: 0 8px 20px #0000000a; }
.m-doc-dropdown a { display: block; padding: 10px 12px; border-radius: 2px; }
.m-doc-dropdown a:hover { background: transparent; }
.m-doc-toggle, .m-doc-sidebar { display: none; }
.m-doc-bar :focus-visible { outline: 2px solid #0964a5; outline-offset: 3px; }
@media (max-width: 900px) {
  .m-doc-inner { width: calc(100% - 48px); }
  .m-doc-links { gap: 20px; }
}
@media (max-width: 850px) {
  :root, html[data-theme='dark'] { --navbar-height: 116px; }
  .vp-sidebar { top: 116px !important; }
  .m-doc-bar { top: 66px; height: 50px; }
  .m-doc-inner { gap: 16px; }
  .m-doc-title { font-size: 13px; }
  .m-doc-toggle, .m-doc-sidebar { align-items: center; gap: 8px; border: 0; padding: 8px 0; background: none; color: #555; font: inherit; font-size: 12px; cursor: pointer; }
  .m-doc-toggle { display: flex; margin-left: auto; }
  .m-doc-links { display: none; position: absolute; top: 49px; left: 0; right: 0; height: auto; max-height: calc(100dvh - 116px); box-sizing: border-box; overflow: auto; padding: 12px 24px 22px; margin: 0; background: #fafaf9; border-bottom: 1px solid #e5e5e2; }
  .m-doc-expanded .m-doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 4px 20px; }
  .m-doc-links > a { min-height: 44px; height: auto; }
  .m-doc-links > a:first-child { grid-column: 1 / -1; border-bottom: 1px solid #e5e5e2; }
  .m-doc-group { height: auto; padding-bottom: 8px; }
  .m-doc-group summary { min-height: 44px; height: auto; color: #202020; font-weight: 600; }
  .m-doc-dropdown { position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .m-doc-dropdown a { padding: 10px 0; line-height: 1.8; }
}
@media (max-width: 719px) {
  .m-doc-sidebar.m-has-directory { display: flex; }
  .vp-sidebar { padding-top: 16px; }
  .vp-sidebar .vp-navbar-items { display: none; }
}
@media (max-width: 650px) { .m-doc-inner { width: calc(100% - 40px); } }
.seo-directory-link { padding: 22px 24px; text-align: center; border-top: 1px solid #e9e9e9; background: #fff; font: 12px/1.8 'Microsoft YaHei', sans-serif; }
.seo-directory-link a { color: #777; text-decoration: none; }
.seo-directory-link a:hover { color: #111; font-weight: 700; }
