/* 智医慧学使用帮助：Material for MkDocs 品牌样式 */
:root {
  --help-brand: #1e4f91;
  --help-brand-strong: #163d73;
  --help-accent: #0b79d0;
  --help-border: #dbe5f1;
  --help-surface: #f7faff;
  --help-text: #17324d;
  --help-muted: #5e7389;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--help-brand);
  --md-primary-fg-color--light: #3568ad;
  --md-primary-fg-color--dark: var(--help-brand-strong);
  --md-accent-fg-color: var(--help-accent);
  --md-typeset-a-color: var(--help-accent);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #244f82;
  --md-primary-fg-color--light: #3568ad;
  --md-primary-fg-color--dark: #173a61;
  --md-accent-fg-color: #65b6ff;
  --md-typeset-a-color: #65b6ff;
}

.md-header {
  box-shadow: 0 1px 0 rgba(15, 45, 75, 0.12);
}

.md-tabs {
  box-shadow: 0 1px 0 rgba(15, 45, 75, 0.12);
}

.md-main__inner {
  margin-top: 1.2rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--help-text);
  letter-spacing: -0.015em;
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #edf5ff;
}

.md-typeset {
  font-size: 0.82rem;
  line-height: 1.8;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--help-border);
  border-radius: 8px;
  overflow: hidden;
}

.help-home-hero {
  padding: 2.6rem 2.8rem;
  border: 1px solid var(--help-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 10%, rgba(30, 79, 145, 0.12), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%);
}

[data-md-color-scheme="slate"] .help-home-hero {
  border-color: #294867;
  background:
    radial-gradient(circle at 92% 10%, rgba(76, 144, 220, 0.2), transparent 32%),
    linear-gradient(135deg, #15283b 0%, #102131 100%);
}

.help-home-kicker {
  color: var(--help-brand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

[data-md-color-scheme="slate"] .help-home-kicker {
  color: #8bc7ff;
}

.help-home-hero h1 {
  margin: 0.55rem 0 0.7rem;
  font-size: 2rem;
  line-height: 1.3;
}

.help-home-hero p {
  max-width: 42rem;
  margin: 0;
  color: var(--help-muted);
  font-size: 0.9rem;
}

[data-md-color-scheme="slate"] .help-home-hero p {
  color: #a9bdd1;
}

.help-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 2.2rem;
}

.help-role-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  color: var(--help-text) !important;
  background: #fff;
  box-shadow: 0 2px 10px rgba(21, 56, 91, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.help-role-card:hover {
  border-color: rgba(30, 79, 145, 0.45);
  box-shadow: 0 8px 24px rgba(21, 56, 91, 0.1);
  transform: translateY(-2px);
}

[data-md-color-scheme="slate"] .help-role-card {
  color: #edf5ff !important;
  background: #172b3e;
  border-color: #294867;
}

.help-role-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--help-brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.help-role-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
}

.help-role-copy strong {
  font-size: 1.05rem;
}

.help-role-copy small {
  color: var(--help-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

[data-md-color-scheme="slate"] .help-role-copy small {
  color: #a9bdd1;
}

.help-role-arrow {
  flex-shrink: 0;
  color: var(--help-brand);
  font-size: 0.72rem;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .help-role-arrow {
  color: #8bc7ff;
}

.help-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.help-feature-card {
  display: flex;
  min-height: 146px;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--help-border);
  border-radius: 10px;
  color: var(--help-text) !important;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.help-feature-card:hover {
  border-color: rgba(30, 79, 145, 0.4);
  box-shadow: 0 7px 18px rgba(21, 56, 91, 0.08);
}

[data-md-color-scheme="slate"] .help-feature-card {
  color: #edf5ff !important;
  background: #172b3e;
  border-color: #294867;
}

.help-feature-group {
  color: var(--help-brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-md-color-scheme="slate"] .help-feature-group {
  color: #8bc7ff;
}

.help-feature-card strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-feature-card small {
  flex: 1;
  color: var(--help-muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

[data-md-color-scheme="slate"] .help-feature-card small {
  color: #a9bdd1;
}

.help-feature-link {
  align-self: flex-start;
  margin-top: 0.15rem;
  color: var(--help-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.help-video {
  overflow: hidden;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: #0d1b2a;
}

.help-video video[hidden] {
  display: none;
}

.help-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1b2a;
}

.help-video-fallback {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 1.5rem;
  color: #d4e4f3;
  text-align: center;
  background:
    linear-gradient(rgba(136, 183, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 183, 216, 0.06) 1px, transparent 1px),
    #0d1b2a;
  background-size: 40px 40px;
}

.help-video-fallback[hidden] {
  display: none;
}

@media screen and (max-width: 760px) {
  .help-home-hero {
    padding: 1.6rem 1.35rem;
  }

  .help-home-hero h1 {
    font-size: 1.55rem;
  }

  .help-role-grid,
  .help-feature-grid {
    grid-template-columns: 1fr;
  }

  .help-role-card {
    align-items: flex-start;
  }

  .help-role-arrow {
    display: none;
  }
}

.md-header__button.md-logo img,
.md-nav__button.md-logo img {
  width: auto;
  height: 1.35rem;
  padding: 3px;
  border-radius: 6px;
  background: #fff;
  box-sizing: content-box;
}

/* 左侧导航：分类标题与功能链接分层 */
.md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item--section > .md-nav__link {
  margin-top: 0.8rem;
  padding: 0.48rem 0.65rem;
  border-radius: 7px;
  color: #1e4f91;
  background: #eef4fb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.md-nav[data-md-level="2"] > .md-nav__list {
  margin-top: 0.28rem;
  padding-left: 0.55rem;
  border-left: 2px solid #e0e9f4;
}

.md-nav[data-md-level="2"] > .md-nav__list > .md-nav__item > .md-nav__link {
  color: #52697f;
  font-size: 0.74rem;
}

.md-nav[data-md-level="2"] > .md-nav__list > .md-nav__item > .md-nav__link--active {
  color: #0b79d0;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item--section > .md-nav__link {
  color: #9ed1ff;
  background: #19324a;
}

[data-md-color-scheme="slate"] .md-nav[data-md-level="2"] > .md-nav__list {
  border-left-color: #294867;
}

[data-md-color-scheme="slate"] .md-nav[data-md-level="2"] > .md-nav__list > .md-nav__item > .md-nav__link {
  color: #aec1d3;
}
