:root {
  --md-primary-fg-color: #204d6f;
  --md-primary-fg-color--light: #3f789e;
  --md-primary-fg-color--dark: #17364e;
  --md-accent-fg-color: #b96b2b;
  --xyfc-accent: #b96b2b;
  --xyfc-danger: #b3261e;
  --xyfc-warning: #9a6700;
  --xyfc-info: #204d6f;
  --xyfc-muted: #f4f6f8;
  --xyfc-border: #d9e0e7;
  --xyfc-body: #20252c;
  --xyfc-secondary: #5f6b7a;
  --xyfc-surface: #ffffff;
  --xyfc-surface-warm: #fbf8f4;
  --xyfc-table-head: #f1ebe3;
  --xyfc-table-band: #faf6f1;
  --xyfc-table-border: #d8cdbd;
}

body,
[data-md-color-scheme="default"] {
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", Arial, sans-serif;
  color: var(--xyfc-body);
  background: #f6f8fa;
}

.md-typeset {
  font-size: 0.88rem;
  line-height: 1.82;
}

.md-main__inner {
  margin-top: 0;
}

.md-content__inner {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 1.45rem;
  padding-bottom: 3rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: "Microsoft YaHei", "Microsoft YaHei UI", Arial, sans-serif;
  letter-spacing: 0;
  color: #18364d;
  font-weight: 700;
}

.md-typeset h1 {
  font-size: 1.95rem;
  line-height: 1.25;
  border-bottom: 1px solid var(--xyfc-border);
  padding-bottom: 0.55rem;
  margin-bottom: 1.2rem;
}

.md-typeset h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(32, 77, 111, 0.16);
}

.md-typeset h3 {
  font-size: 1.08rem;
  margin-top: 1.5rem;
}

.md-typeset h4 {
  font-size: 0.98rem;
  margin-top: 1.15rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--xyfc-accent);
}

.md-typeset p,
.md-typeset li,
.md-typeset td,
.md-typeset th,
.md-typeset blockquote,
.md-typeset .admonition,
.md-typeset details {
  font-size: 1em;
}

.md-typeset ul,
.md-typeset ol {
  font-size: 1em;
}

.md-typeset li > ul,
.md-typeset li > ol,
.md-typeset li > ul > li,
.md-typeset li > ol > li {
  font-size: 1em;
  line-height: 1.82;
}

.md-typeset img {
  border: 1px solid var(--xyfc-border);
  border-radius: 6px;
  background: white;
  box-shadow: 0 6px 18px rgba(24, 54, 77, 0.08);
  padding: 0.28rem;
}

.md-typeset img:not(.ui-icon):not(.inline-icon) {
  display: block;
  width: auto;
  max-width: min(100%, 44rem);
  max-height: min(68vh, 34rem);
  margin: 1rem auto 1.15rem;
  object-fit: contain;
}

.md-typeset p > img:not(.ui-icon):not(.inline-icon):only-child,
.md-typeset li > img:not(.ui-icon):not(.inline-icon):only-child {
  margin-left: auto;
  margin-right: auto;
}

.md-typeset img.ui-icon,
.md-typeset img.inline-icon {
  border-radius: 6px;
  box-shadow: none;
  padding: 0.12rem;
}

.md-typeset img.ui-icon {
  width: 2.1rem;
  max-width: 2.1rem;
}

.md-typeset td img.ui-icon,
.md-typeset p > img.ui-icon:only-child,
.md-typeset li > img.ui-icon:only-child {
  display: block;
  margin: 0.25rem auto;
}

.md-typeset img.inline-icon {
  width: 1.25em;
  max-width: 1.25em;
  vertical-align: text-bottom;
  margin: 0 0.16em;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--xyfc-table-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  background: white;
}

.md-typeset table:not([class]) thead th,
.md-typeset table:not([class]) th {
  background: var(--xyfc-table-head);
  color: #18364d;
  font-weight: 700;
  border-bottom: 1px solid var(--xyfc-table-border);
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-color: var(--xyfc-table-border);
  padding: 0.72rem 0.9rem;
}

.md-typeset table:not([class]) tbody tr:nth-child(even) td {
  background: var(--xyfc-table-band);
}

.md-typeset table:not([class]) tbody tr:hover td {
  background: #f6f0e8;
}

.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: var(--xyfc-info);
  background: #f2f7fb;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: var(--xyfc-warning);
  background: #fff8e8;
}

.md-typeset .admonition.danger,
.md-typeset details.danger {
  border-color: var(--xyfc-danger);
  background: #fff5f3;
}

.md-typeset blockquote {
  border-left: 4px solid rgba(32, 77, 111, 0.35);
  background: #f4f7fa;
  border-radius: 0 6px 6px 0;
  padding: 0.35rem 1rem;
}

.md-typeset blockquote p:first-child strong {
  color: var(--md-primary-fg-color--dark);
  letter-spacing: 0;
}

.md-header {
  background-color: #17364e;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.md-sidebar,
.md-tabs {
  background-color: var(--xyfc-surface);
}

.md-nav__title {
  font-weight: 700;
}

.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--md-primary-fg-color);
}

.md-search__form {
  border-radius: 6px;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.5rem;
  width: auto;
}

.xyfc-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.8rem;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f7f2eb 54%, #edf4f9 100%);
  border: 1px solid rgba(32, 77, 111, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(24, 54, 77, 0.08);
  padding: 1.55rem 1.7rem;
  margin: 1.15rem 0 2rem;
}

.xyfc-hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 77, 111, 0.1);
  border-radius: 16px;
}

.xyfc-hero__logo {
  display: block;
  width: min(100%, 320px);
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0 auto;
}

.xyfc-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.xyfc-hero__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--xyfc-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xyfc-hero__lead {
  margin: 0;
  color: #18364d;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.55;
}

.xyfc-hero__text {
  margin: 0.65rem 0 0;
  color: var(--xyfc-secondary);
}

.xyfc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.xyfc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 77, 111, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: #18364d;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.xyfc-pill--muted {
  background: rgba(24, 54, 77, 0.06);
}

.xyfc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.xyfc-card {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  background: white;
  border: 1px solid var(--xyfc-border);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 6px 18px rgba(24, 54, 77, 0.06);
}

.xyfc-card h3 {
  margin: 0;
}

.xyfc-card__eyebrow {
  margin: 0;
  color: var(--xyfc-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.xyfc-card__version {
  margin: 0;
  color: var(--xyfc-secondary);
}

.xyfc-card__action {
  margin: 0.35rem 0 0;
}

.xyfc-card__action a {
  font-weight: 700;
}

.md-footer {
  background: transparent;
}

.md-footer__inner {
  background: transparent;
  padding-top: 0.4rem;
}

.md-footer__link {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--xyfc-border);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(24, 54, 77, 0.08);
  margin-bottom: 1rem;
}

.md-footer__link:hover,
.md-footer__link:focus {
  background: #fff;
  border-color: rgba(32, 77, 111, 0.24);
}

.md-footer__direction {
  color: var(--xyfc-accent);
  font-weight: 700;
}

.md-footer__title {
  color: #18364d;
}

@media screen and (max-width: 76.2344em) {
  .xyfc-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem 1.15rem;
  }

  .md-sidebar--primary,
  .md-sidebar--secondary {
    background: white;
  }
}
