/* ==========================================================================
   LiteExcel 文档站 · 设计系统
   不依赖 Material 默认观感，全部自定义
   ========================================================================== */

/* ── 1. 设计令牌 ───────────────────────────────────────────────────────── */

:root {
  --lx-brand:        #0d7a5f;
  --lx-brand-light:  #10b981;
  --lx-brand-dark:   #095c47;
  --lx-accent:       #f59e0b;
  --lx-ink:          #12211d;
  --lx-ink-soft:     #4a5f58;
  --lx-ink-faint:    #7d918a;
  --lx-surface:      #ffffff;
  --lx-surface-alt:  #f6faf8;
  --lx-surface-sunk: #eef4f1;
  --lx-border:       #dce7e2;
  --lx-border-soft:  #eaf1ee;
  --lx-code-bg:      #f4f8f6;

  --lx-shadow-sm: 0 1px 2px rgba(13, 40, 33, .06);
  --lx-shadow-md: 0 2px 8px rgba(13, 40, 33, .07), 0 1px 2px rgba(13, 40, 33, .04);
  --lx-shadow-lg: 0 12px 32px -8px rgba(13, 40, 33, .14), 0 2px 8px rgba(13, 40, 33, .06);

  --lx-radius:    10px;
  --lx-radius-lg: 16px;
  --lx-measure:   46em;

  --lx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
             "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --lx-font-mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas,
                  "Liberation Mono", Menlo, monospace;
}

[data-md-color-scheme="slate"] {
  --lx-brand:        #34d399;
  --lx-brand-light:  #6ee7b7;
  --lx-brand-dark:   #10b981;
  --lx-accent:       #fbbf24;
  --lx-ink:          #e6efec;
  --lx-ink-soft:     #a8bdb7;
  --lx-ink-faint:    #7b918b;
  --lx-surface:      #131c1a;
  --lx-surface-alt:  #18231f;
  --lx-surface-sunk: #0e1614;
  --lx-border:       #26332f;
  --lx-border-soft:  #1e2a26;
  --lx-code-bg:      #0e1614;

  --lx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --lx-shadow-md: 0 2px 8px rgba(0, 0, 0, .35);
  --lx-shadow-lg: 0 12px 32px -8px rgba(0, 0, 0, .5);
}

/* 把令牌接进 Material 自己的变量 */
:root,
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        var(--lx-brand);
  --md-primary-fg-color--light: var(--lx-brand-light);
  --md-primary-fg-color--dark:  var(--lx-brand-dark);
  --md-accent-fg-color:         var(--lx-brand-light);
  --md-typeset-a-color:         var(--lx-brand);
}

/* ── 2. 排版 ───────────────────────────────────────────────────────────── */

/* 防止全宽 Hero 的 100vw 产生横向滚动条（clip 不会像 hidden 那样破坏 sticky） */
html { overflow-x: clip; }

body,
input {
  font-family: var(--lx-font);
}

.md-typeset {
  font-size: .82rem;
  line-height: 1.85;
  color: var(--lx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.md-typeset > p,
.md-typeset > ul,
.md-typeset > ol {
  max-width: var(--lx-measure);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--lx-font);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lx-ink);
}

.md-typeset h1 {
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 .8rem;
  font-weight: 800;
}

/* 章节标题：左侧色条 + 上方留白，形成节奏 */
.md-typeset h2 {
  font-size: 1.28rem;
  margin: 2.6rem 0 1rem;
  padding-left: .7rem;
  border-left: 4px solid var(--lx-brand);
  line-height: 1.4;
}

.md-typeset h3 {
  font-size: 1.02rem;
  margin: 2rem 0 .7rem;
  color: var(--lx-ink);
}

.md-typeset h4 {
  font-size: .92rem;
  margin: 1.6rem 0 .5rem;
  color: var(--lx-ink-soft);
}

/* 锚点链接：悬停才出现，不干扰阅读 */
.md-typeset .headerlink {
  opacity: 0;
  transition: opacity .2s;
}
.md-typeset h2:hover .headerlink,
.md-typeset h3:hover .headerlink,
.md-typeset h4:hover .headerlink {
  opacity: .35;
}

.md-typeset strong { color: var(--lx-ink); font-weight: 700; }

.md-typeset hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lx-border), transparent);
  margin: 2.5rem 0;
}

/* 行内代码 */
.md-typeset code {
  font-family: var(--lx-font-mono);
  font-size: .78em;
  background: var(--lx-code-bg);
  border: 1px solid var(--lx-border-soft);
  border-radius: 5px;
  padding: .12em .38em;
  color: var(--lx-brand-dark);
  box-shadow: none;
}
[data-md-color-scheme="slate"] .md-typeset code { color: var(--lx-brand-light); }

/* ── 3. 顶部导航 ───────────────────────────────────────────────────────── */

.md-header {
  background: linear-gradient(120deg, var(--lx-brand-dark) 0%, var(--lx-brand) 55%, #0e8a6a 100%);
  box-shadow: var(--lx-shadow-md);
}
[data-md-color-scheme="slate"] .md-header {
  background: linear-gradient(120deg, #0b1a16 0%, #123028 55%, #14453a 100%);
  border-bottom: 1px solid var(--lx-border);
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -.01em;
}

.md-tabs {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.md-tabs__link {
  font-weight: 600;
  opacity: .78;
  transition: opacity .2s;
}
.md-tabs__link:hover,
.md-tabs__link--active { opacity: 1; }

/* 搜索框 */
.md-search__form {
  background: rgba(255, 255, 255, .14);
  border-radius: 8px;
  transition: background .2s;
}
.md-search__form:hover { background: rgba(255, 255, 255, .22); }

/* ── 4. 侧边栏导航 ─────────────────────────────────────────────────────── */

.md-nav {
  font-size: .72rem;
  line-height: 1.5;
}

.md-nav__title {
  font-weight: 700;
  color: var(--lx-ink-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .62rem;
}

.md-nav__link {
  border-radius: 6px;
  padding: .32rem .5rem;
  margin: .05rem 0;
  transition: background .15s, color .15s;
}
.md-nav__link:hover { background: var(--lx-surface-alt); }

.md-nav__link--active,
.md-nav__item .md-nav__link--active {
  background: var(--lx-surface-sunk);
  color: var(--lx-brand);
  font-weight: 700;
}

/* 当前页面高亮：右侧竖条 */
.md-nav--primary .md-nav__link--active::after { display: none; }

/* 右侧目录 */
.md-nav--secondary .md-nav__link {
  font-size: .7rem;
  padding: .2rem .5rem;
  border-left: 2px solid transparent;
}
.md-nav--secondary .md-nav__link--active {
  border-left-color: var(--lx-brand);
  background: transparent;
  border-radius: 0 6px 6px 0;
}

/* ── 5. Hero（首页主视觉）───────────────────────────────────────────────── */

/* 首页：取消网格宽度限制，Hero 自然全宽（不用 100vw，不会溢出）*/
.md-main__inner:has(.lx-hero) {
  max-width: none;
  margin-top: 0;
}
.md-main__inner:has(.lx-hero) .md-sidebar--primary,
.md-main__inner:has(.lx-hero) .md-sidebar--secondary {
  display: none;
}
.md-main__inner:has(.lx-hero) .md-content {
  max-width: none;
  margin: 0;
}
/* 特异性要压过 Material 的
   [dir=ltr] .md-sidebar--primary:not([hidden])~.md-content>.md-content__inner */
.md-main__inner:has(.lx-hero) .md-sidebar--primary ~ .md-content > .md-content__inner {
  margin: 0;
  padding: 0 1.2rem;
}

/* 正文限宽居中（Hero 除外）*/
.md-content__inner:has(.lx-hero) > *:not(.lx-hero) {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.md-content__inner:has(.lx-hero) > .md-content__button { display: none; }

.lx-hero {
  position: relative;
  z-index: 0;
  margin: 0 -1.2rem 2.4rem;
  padding: 3.4rem 1.5rem 3rem;
  text-align: center;
  background-color: var(--lx-surface);
  background-image:
    radial-gradient(circle at center, rgba(16, 185, 129, .20), transparent 70%),
    radial-gradient(circle at center, rgba(245, 158, 11, .13), transparent 70%),
    linear-gradient(168deg, var(--lx-surface-alt), var(--lx-surface));
  background-size: 1150px 540px, 860px 440px, 100% 100%;
  background-position: calc(50% - 400px) -170px, calc(50% + 440px) -130px, center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--lx-border);
}

/* 背景网格纹理 */
.lx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--lx-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--lx-border-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 34rem 20rem at 50% 0%, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse 34rem 20rem at 50% 0%, #000 20%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

.lx-hero > * { position: relative; z-index: 1; }

.lx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lx-brand);
  background: color-mix(in srgb, var(--lx-brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lx-brand) 24%, transparent);
  border-radius: 999px;
  padding: .32rem .8rem;
  margin-bottom: 1.1rem;
}

.lx-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0 0 .8rem;
  color: var(--lx-ink);
}
.lx-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lx-brand), var(--lx-brand-light) 45%, var(--lx-accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lx-hero__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--lx-ink-soft);
  max-width: 34em;
  margin: 0 auto 1.6rem;
}

.lx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  padding: .62rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.lx-btn--primary {
  background: var(--lx-brand);
  color: #fff !important;
  box-shadow: 0 4px 14px -3px color-mix(in srgb, var(--lx-brand) 55%, transparent);
}
.lx-btn--primary:hover {
  background: var(--lx-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -4px color-mix(in srgb, var(--lx-brand) 60%, transparent);
}
.lx-btn--ghost {
  background: var(--lx-surface);
  color: var(--lx-ink) !important;
  border-color: var(--lx-border);
  box-shadow: var(--lx-shadow-sm);
}
.lx-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--lx-brand);
  color: var(--lx-brand) !important;
  box-shadow: var(--lx-shadow-md);
}

/* 数据条 */
.lx-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--lx-border);
  max-width: 44rem;
  margin: 0 auto;
}
.lx-stat { text-align: center; }
.lx-stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--lx-brand);
  letter-spacing: -.02em;
}
.lx-stat__label {
  display: block;
  font-size: .68rem;
  color: var(--lx-ink-faint);
  margin-top: .25rem;
  letter-spacing: .02em;
}

/* ── 6. 卡片 ───────────────────────────────────────────────────────────── */

.lx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.lx-card {
  display: block;
  padding: 1.15rem 1.2rem;
  background: var(--lx-surface);
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius-lg);
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: var(--lx-shadow-sm);
  transition: transform .18s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.lx-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lx-brand), var(--lx-brand-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.lx-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--lx-brand) 40%, var(--lx-border));
  box-shadow: var(--lx-shadow-lg);
}
.lx-card:hover::after { transform: scaleX(1); }

.lx-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: color-mix(in srgb, var(--lx-brand) 12%, transparent);
  color: var(--lx-brand);
  margin-bottom: .65rem;
}
.lx-card__icon svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.lx-card__title {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--lx-ink);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.lx-card__desc {
  display: block;
  font-size: .74rem;
  line-height: 1.65;
  color: var(--lx-ink-soft);
}

/* 特性小卡（3×2 网格）*/
.lx-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.2rem 0 2rem;
}
.lx-feat {
  padding: .9rem 1rem;
  background: var(--lx-surface-alt);
  border: 1px solid var(--lx-border-soft);
  border-radius: var(--lx-radius);
}
.lx-feat__k {
  display: block;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lx-ink-faint);
  margin-bottom: .3rem;
}
.lx-feat__v {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--lx-ink);
}

/* ── 7. 表格 ───────────────────────────────────────────────────────────── */

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--lx-shadow-sm);
  font-size: .76rem;
  margin: 1rem 0 1.6rem;
}

.md-typeset table:not([class]) th {
  background: var(--lx-surface-alt);
  color: var(--lx-ink);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .01em;
  padding: .6rem .8rem;
  border-bottom: 2px solid var(--lx-border);
  white-space: nowrap;
}

.md-typeset table:not([class]) td {
  padding: .55rem .8rem;
  border-bottom: 1px solid var(--lx-border-soft);
  vertical-align: top;
}

.md-typeset table:not([class]) tr:last-child td { border-bottom: 0; }
.md-typeset table:not([class]) tbody tr { transition: background .12s; }
.md-typeset table:not([class]) tbody tr:hover {
  background: color-mix(in srgb, var(--lx-brand) 5%, transparent);
}

/* 第一列加粗，方便横向扫读 */
.md-typeset table:not([class]) td:first-child { font-weight: 600; }

/* 能力矩阵：居中 + 支持项着色 */
.lx-matrix td:not(:first-child),
.lx-matrix th:not(:first-child) { text-align: center; }

/* ── 8. 提示块（admonition）────────────────────────────────────────────── */

.md-typeset .admonition,
.md-typeset details {
  border: 1px solid var(--lx-border);
  border-left-width: 4px;
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow-sm);
  font-size: .78rem;
  margin: 1.2rem 0;
  overflow: hidden;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-weight: 700;
  font-size: .78rem;
  padding: .55rem .8rem .55rem 2.3rem;
  border: 0;
}
.md-typeset .admonition-title::before,
.md-typeset summary::before { top: .62rem; left: .72rem; }

.md-typeset .admonition > :last-child { margin-bottom: .8rem; }
.md-typeset .admonition > p,
.md-typeset .admonition > ul,
.md-typeset .admonition > ol { padding: 0 .9rem; }

/* 各类提示的色调（特异性要压过 Material 的 .md-typeset .admonition.warning）*/
.md-typeset .admonition.warning,
.md-typeset details.warning,
.md-typeset .admonition.danger,
.md-typeset details.danger { border-color: #ef4444; }
.md-typeset .warning > .admonition-title,
.md-typeset .danger > .admonition-title {
  background-color: color-mix(in srgb, #ef4444 9%, var(--lx-surface));
}
.md-typeset .warning > .admonition-title::before,
.md-typeset .danger > .admonition-title::before { background-color: #ef4444; }

.md-typeset .admonition.note,
.md-typeset details.note,
.md-typeset .admonition.info,
.md-typeset details.info { border-color: #3b82f6; }
.md-typeset .note > .admonition-title,
.md-typeset .info > .admonition-title {
  background-color: color-mix(in srgb, #3b82f6 9%, var(--lx-surface));
}
.md-typeset .note > .admonition-title::before,
.md-typeset .info > .admonition-title::before { background-color: #3b82f6; }

.md-typeset .admonition.tip,
.md-typeset details.tip,
.md-typeset .admonition.success,
.md-typeset details.success { border-color: var(--lx-brand); }
.md-typeset .tip > .admonition-title,
.md-typeset .success > .admonition-title {
  background-color: color-mix(in srgb, var(--lx-brand) 10%, var(--lx-surface));
}
.md-typeset .tip > .admonition-title::before,
.md-typeset .success > .admonition-title::before { background-color: var(--lx-brand); }

.md-typeset .admonition.example,
.md-typeset details.example,
.md-typeset .admonition.quote,
.md-typeset details.quote { border-color: var(--lx-accent); }
.md-typeset .example > .admonition-title,
.md-typeset .quote > .admonition-title {
  background-color: color-mix(in srgb, var(--lx-accent) 11%, var(--lx-surface));
}
.md-typeset .example > .admonition-title::before,
.md-typeset .quote > .admonition-title::before { background-color: var(--lx-accent); }

/* 可折叠块 */
.md-typeset details summary { cursor: pointer; }
.md-typeset details[open] summary { border-bottom: 1px solid var(--lx-border-soft); }

/* ── 9. 代码块 ─────────────────────────────────────────────────────────── */

.md-typeset pre > code {
  font-family: var(--lx-font-mono);
  font-size: .74rem;
  line-height: 1.72;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 1.15em 1.6em;   /* 不要设 0，否则文字会紧贴框线 */
  color: inherit;
}

.md-typeset .highlight,
.md-typeset pre {
  border-radius: var(--lx-radius);
  border: 1px solid var(--lx-border);
  box-shadow: var(--lx-shadow-sm);
  overflow: hidden;
}

.md-typeset .highlight > pre { border: 0; box-shadow: none; margin: 0; }
.md-typeset .highlight { margin: 1rem 0 1.4rem; }

.md-typeset .highlight code { background: transparent; }

/* 复制按钮：给代码块留出右上角空间 */
.md-clipboard {
  top: .5rem;
  right: .5rem;
  color: var(--lx-ink-faint);
  transition: color .2s, opacity .2s;
}
.md-clipboard:hover { color: var(--lx-brand); }

/* 代码块行号 */
.md-typeset .highlighttable .linenos {
  background: var(--lx-surface-alt);
  color: var(--lx-ink-faint);
  border-right: 1px solid var(--lx-border);
}

/* 输出块（用 text 语言标记的）稍微弱化 */
.md-typeset .language-text,
.md-typeset .language-console {
  font-size: .72rem;
}

/* ── 10. 首页专用 ──────────────────────────────────────────────────────── */

/* 首页内容区：Hero 顶到导航栏，不留缝 */
.md-content__inner:has(.lx-hero) { padding-top: 0; margin-top: 0; }
.md-content__inner:has(.lx-hero)::before { display: none; }   /* Material 的 .4rem 占位 */
.md-content__inner:has(.lx-hero) > .md-content__button { display: none; }
.md-content__inner:has(.lx-hero) > .lx-hero { margin-top: 0; }

.lx-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 2.4rem 0 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lx-section-title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--lx-brand), var(--lx-brand-light));
}

/* 安装命令高亮框 */
.lx-install {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--lx-font-mono);
  font-size: .84rem;
  background: var(--lx-surface-sunk);
  border: 1px solid var(--lx-border);
  border-left: 4px solid var(--lx-brand);
  border-radius: var(--lx-radius);
  padding: .85rem 1.1rem;
  margin: 1rem 0 1.6rem;
  overflow-x: auto;
}
.lx-install::before {
  content: "$";
  color: var(--lx-brand);
  font-weight: 700;
  flex-shrink: 0;
}
.lx-install code {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: var(--lx-ink) !important;
  font-size: inherit;
}

/* 页脚 */
.md-footer {
  background: var(--lx-surface-alt);
  border-top: 1px solid var(--lx-border);
  color: var(--lx-ink-soft);
}
.md-footer-meta {
  background: transparent;
}
.md-footer,
.md-footer-meta,
.md-footer__inner { color: var(--lx-ink-soft); }
.md-footer__link { color: var(--lx-ink-soft); opacity: .85; }
.md-footer__link:hover { opacity: 1; color: var(--lx-brand); }

/* ── 11. 滚动条 & 细节 ─────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--lx-ink-faint) 35%, transparent);
  border-radius: 5px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--lx-brand) 55%, transparent);
  background-clip: content-box;
}

/* 选中文字 */
::selection {
  background: color-mix(in srgb, var(--lx-brand) 26%, transparent);
}

/* 键盘按键 */
.md-typeset .keys kbd {
  background: var(--lx-surface-alt);
  border: 1px solid var(--lx-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  box-shadow: none;
  color: var(--lx-ink);
  font-family: var(--lx-font-mono);
  font-size: .7rem;
}

/* 标签页（tabbed） */
.md-typeset .tabbed-set {
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  overflow: hidden;
  box-shadow: var(--lx-shadow-sm);
  margin: 1rem 0 1.4rem;
}
.md-typeset .tabbed-labels {
  background: var(--lx-surface-alt);
  border-bottom: 1px solid var(--lx-border);
  padding: 0 .5rem;
}
.md-typeset .tabbed-labels > label {
  font-weight: 600;
  font-size: .75rem;
  padding: .65rem .9rem;
}
.md-typeset .tabbed-set > input:checked + label {
  color: var(--lx-brand);
  border-color: var(--lx-brand);
}
.md-typeset .tabbed-content { padding: 0 .8rem; }

/* ── 12. 响应式 ────────────────────────────────────────────────────────── */

@media screen and (max-width: 76.25em) {
  .md-typeset h2 { margin-top: 2.2rem; }
}

@media screen and (max-width: 44.9375em) {
  .lx-hero {
    margin: 0 -0.8rem 1.6rem;
    padding: 2.4rem 1rem 2rem;
  }
  .lx-hero__title { font-size: 1.75rem; }
  .lx-hero__sub { font-size: .86rem; }
  .lx-stats { gap: 1.4rem; }
  .lx-stat__num { font-size: 1.25rem; }
  .lx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-btn { width: 100%; justify-content: center; }
  .md-typeset { font-size: .78rem; }
  .md-typeset h1 { font-size: 1.5rem; }
  .md-typeset h2 { font-size: 1.12rem; }
}

/* 打印 */
@media print {
  .lx-hero { background: none; border: 0; }
  .lx-hero::before { display: none; }
  .md-typeset h2 { border-left-width: 3px; }
}
