.md-main__inner {
  margin: 0;
}

.md-main__inner > .md-content,
.md-main__inner > .md-sidebar--secondary {
  display: none;
}

.md-content__inner {
  margin-bottom: 0;
  padding: 4rem 0 5.2rem;
}

.md-content__inner:before {
  display: none;
}

.md-typeset .md-button {
  background-color: #c45c26;
  border-width: 0;
  color: var(--md-primary-bg-color);
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.md-typeset .md-button--secondary {
  background-color: initial;
  border: 0.05rem solid currentColor;
  color: inherit;
}

.home-page .md-header,
.home-page .md-header:not(.md-header--shadow),
.home-page .md-header--shadow,
html:has(.mdx-home-only) .md-header,
html:has(.mdx-home-only) .md-header--shadow,
html:has(.mdx-parallax) .md-header,
html:has(.mdx-parallax) .md-header--shadow {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: #f3f5f7 !important;
}

.home-page .md-header__button,
.home-page .md-header__topic,
.home-page .md-header__title,
.home-page .md-search__input,
.home-page .md-search__icon,
html:has(.mdx-home-only) .md-header__button,
html:has(.mdx-home-only) .md-header__topic,
html:has(.mdx-home-only) .md-search__icon {
  color: #f3f5f7 !important;
}

.home-page .md-search__input::placeholder,
html:has(.mdx-home-only) .md-search__input::placeholder {
  color: rgba(243, 245, 247, 0.62) !important;
}

.home-page .md-search__form,
html:has(.mdx-home-only) .md-search__form {
  background-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0 0 0.05rem rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.home-page .md-search__form::after,
html:has(.mdx-home-only) .md-search__form::after {
  background: rgba(20, 24, 30, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: rgba(243, 245, 247, 0.88) !important;
}

/* 首页 tabs：彻底透明，和顶栏同一层叠在图上，不要第二条色带 */
.home-page .md-tabs,
.home-page [data-md-color-primary] .md-tabs,
html:has(.mdx-home-only) .md-tabs,
html:has(.mdx-home-only) [data-md-color-primary] .md-tabs,
html:has(.mdx-home-only) [data-md-color-scheme] .md-tabs,
html:has(.mdx-parallax) .md-tabs {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: absolute;
  top: 2.4rem;
  color: #f3f5f7 !important;
}

.home-page .md-tabs .md-tabs__link,
html:has(.mdx-home-only) .md-tabs .md-tabs__link {
  color: rgba(243, 245, 247, 0.78) !important;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-page .md-tabs .md-tabs__item--active > .md-tabs__link,
.home-page .md-tabs .md-tabs__link:hover,
.home-page .md-tabs .md-tabs__link:focus,
html:has(.mdx-home-only) .md-tabs .md-tabs__item--active > .md-tabs__link,
html:has(.mdx-home-only) .md-tabs .md-tabs__link:hover {
  color: #ffffff !important;
}

.home-page .md-tabs__dropdown-list,
html:has(.mdx-home-only) .md-tabs__dropdown-list {
  background: rgba(18, 22, 28, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.home-page .md-tabs__dropdown-link,
html:has(.mdx-home-only) .md-tabs__dropdown-link {
  color: rgba(243, 245, 247, 0.9) !important;
}

/* 首页锁一屏：按视口高度，禁止竖直滚动条 */
html:has(.mdx-home-only),
html:has(.mdx-home-only) body {
  height: 100%;
  max-height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
  /* 顶栏透明时若 html/body 仍是白底，最上沿会露出一条白线 */
  background: #0f1419 !important;
  background-color: #0f1419 !important;
}

html:has(.mdx-home-only) .md-container,
html:has(.mdx-home-only) .md-main,
html:has(.mdx-home-only) .md-main__inner {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
}

html:has(.mdx-home-only) .md-header,
html:has(.mdx-home-only) .md-header--shadow {
  outline: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.mdx-home-only {
  box-sizing: border-box;
  margin-top: -2.4rem;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  /* 允许二级菜单溢出；页面滚动由 html/body 锁死 */
  overflow: visible;
}

.mdx-parallax__group {
  background-color: var(--md-default-bg-color);
  color: var(--md-typeset-color);
  display: block;
  position: relative;
}

.mdx-parallax__group--hero {
  box-sizing: border-box;
  background: #0f1419;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.mdx-parallax__layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.mdx-parallax__layer--hero {
  z-index: 0;
}

.mdx-parallax__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

.mdx-parallax__blend {
  z-index: 1;
  background:
    /* 顶部一条柔和压暗，让标题/导航浮在图上，而不是两根色带 */
    linear-gradient(
      to bottom,
      rgba(8, 12, 16, 0.55) 0%,
      rgba(8, 12, 16, 0.22) 18%,
      rgba(8, 12, 16, 0) 36%
    ),
    linear-gradient(
      90deg,
      rgba(10, 14, 18, 0.88) 0%,
      rgba(10, 14, 18, 0.55) 42%,
      rgba(10, 14, 18, 0.22) 72%,
      rgba(10, 14, 18, 0.4) 100%
    );
}

.mdx-hero {
  position: relative;
  z-index: 2;
  height: 100%;
}

.mdx-hero__scrollwrap {
  position: relative;
  height: 100%;
}

.mdx-hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.6rem;
  width: 100%;
}

@media screen and (max-width: 44.984375em) {
  .mdx-hero__inner {
    bottom: 5.2rem;
  }
}

.mdx-hero__teaser {
  color: #f3f5f7;
  margin: 0 0.8rem;
  max-width: 34rem;
}

.mdx-hero__eyebrow {
  margin: 0 0 0.6rem !important;
  color: rgba(243, 245, 247, 0.72) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-shadow: none !important;
}

.mdx-hero__teaser h1 {
  color: inherit;
  font-weight: 700;
  margin: 0 0 0.7rem;
  line-height: 1.25;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}

.mdx-hero__teaser p {
  margin-top: 0;
  max-width: 32rem;
  color: rgba(243, 245, 247, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.mdx-hero__teaser .md-button--secondary {
  color: #f3f5f7;
  border-color: rgba(243, 245, 247, 0.55);
}

@media screen and (min-width: 60em) {
  .md-sidebar--secondary {
    display: none;
  }
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }
}

.home-page [data-md-color-primary] .md-tabs,
.home-page .md-tabs,
html:has(.mdx-home-only) .md-tabs,
html:has(.mdx-parallax) .md-tabs {
  /* 位置已在上方规则中设置；这里避免被旧规则盖回实色 */
  background: transparent !important;
}

.mdx-home {
  margin: 0 auto;
  max-width: 58rem;
}

.mdx-home .headerlink {
  display: none;
}

.mdx-home__section {
  margin: 0 0 3.2rem;
}

.mdx-home__section--last {
  margin-bottom: 0.4rem;
}

.mdx-home__section > h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mdx-home__lead {
  max-width: 42rem;
  margin: 0 0 1.4rem;
  color: var(--md-default-fg-color--light);
}

.mdx-home__prose {
  max-width: 42rem;
}

.mdx-home__prose ul {
  margin: 0;
}

.mdx-home__prose li {
  margin-bottom: 0.45rem;
  color: var(--md-default-fg-color--light);
}

.mdx-home__prose strong {
  color: var(--md-default-fg-color);
}

.mdx-home__grid {
  display: grid;
  gap: 0.85rem;
}

.mdx-home__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.mdx-home__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.mdx-home__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.mdx-home__card {
  height: 100%;
  padding: 1rem 1.05rem 0.95rem;
  border-top: 0.12rem solid var(--md-typeset-a-color);
  background: transparent;
}

.mdx-home__card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.mdx-home__card h3 a {
  color: var(--md-default-fg-color);
}

.mdx-home__card p {
  margin: 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  line-height: 1.65;
}

.mdx-home__steps {
  margin: 0;
  padding-left: 1.2rem;
  max-width: 44rem;
}

.mdx-home__steps li {
  margin-bottom: 0.85rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.65;
}

.mdx-home__steps strong {
  color: var(--md-default-fg-color);
}

@media screen and (max-width: 76.1875em) {
  .mdx-home__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 44.984375em) {
  .md-content__inner {
    padding: 2.8rem 0.8rem 4rem;
  }

  .mdx-home__grid--2,
  .mdx-home__grid--3,
  .mdx-home__grid--4 {
    grid-template-columns: 1fr;
  }

  .mdx-hero__teaser {
    max-width: 100%;
  }

  .mdx-parallax__image {
    object-position: 70% 40%;
  }
}
