:root {
  /* TypeApp 色彩标准：青绿品牌、冷白阅读区、深墨代码区。 */
  --brand: #147d64;
  --brand-strong: #0e5f4d;
  --brand-soft: #e4f3ed;
  --brand-line: #b5d9cc;
  --accent: #65dfbb;
  --accent-soft: #b6f2de;
  --surface: #f8fbfa;
  --surface-raised: #ffffff;
  --surface-muted: #eff5f2;
  --ink: #16382e;
  --text: #425d54;
  --muted: #586f65;
  --line: #dbe7e1;
  --night: #0c211c;
  --night-raised: #122e26;
  --night-line: #2c4a3f;
  --night-text: #e4f5ed;
  --night-muted: #99b6a9;
  --syntax-keyword: #8dc8f4;
  --syntax-literal: #e8c789;
  --warning-bg: #fff6e5;
  --warning-line: #e6c27a;
  --warning-text: #805b16;

  /* 将 Docsify 与 Prism 的主题入口映射到同一套颜色。 */
  --theme-color: var(--brand);
  --color-bg: var(--surface);
  --color-text: var(--text);
  --strong-color: var(--ink);
  --border-color: var(--line);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-size: 15px;
  --font-weight: 400;
  --content-max-width: 820px;
  --content-margin-inline: 48px;
  --sidebar-width: 252px;
  --sidebar-bg: var(--surface-muted);
  --sidebar-border-color: var(--line);
  --sidebar-link-color: var(--text);
  --sidebar-link-color-active: var(--brand-strong);
  --sidebar-font-size: 14px;
  --sidebar-link-spacing: 4px;
  --sidebar-name-font-size: 25px;
  --sidebar-name-font-weight: 750;
  --sidebar-toggle-height: 44px;
  --sidebar-toggle-bg: var(--surface-raised);
  --sidebar-toggle-color: var(--muted);
  --navbar-height: 76px;
  --navbar-link-color: var(--muted);
  --link-color: var(--brand);
  --link-color-hover: var(--brand-strong);
  --code-bg: var(--surface-muted);
  --code-color: var(--brand-strong);
  --codeblock-bg: var(--night);
  --codeblock-color: var(--night-text);
  --codeblock-comment: var(--night-muted);
  --codeblock-function: var(--accent-soft);
  --codeblock-important: var(--syntax-literal);
  --codeblock-keyword: var(--syntax-keyword);
  --codeblock-operator: var(--night-text);
  --codeblock-property: var(--syntax-literal);
  --codeblock-punctuation: var(--night-muted);
  --codeblock-selector: var(--accent-soft);
  --codeblock-tag: var(--syntax-keyword);
  --codeblock-variable: var(--syntax-literal);
}

body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand-soft); color: var(--night); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
noscript { display: block; padding: 20px; }
.mobile-header { display: none; }

/* 品牌、导航与搜索。 */
.sidebar .app-name { margin: 0; padding: 28px 24px 25px; text-align: left; letter-spacing: -1px; }
.sidebar .app-name-link { display: flex; align-items: center; gap: 11px; width: fit-content; }
.sidebar .app-name-link::before { content: ""; width: 33px; height: 33px; flex: 0 0 33px; background: url("favicon.svg") center / contain no-repeat; }
.sidebar .app-name-link::after { content: "DOCS"; align-self: start; margin-top: 5px; color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: 1px; }
.search { --plugin-search-margin: 0 24px 24px; --plugin-search-input-bg: var(--surface-raised); --plugin-search-input-border-color: var(--line); --plugin-search-input-border-radius: 8px; }
.search input { min-height: 40px; padding-left: 33px; font-size: 12px; }
.search .input-wrap::before { content: ""; position: absolute; z-index: 1; left: 13px; top: 13px; width: 10px; height: 10px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search .input-wrap::after { content: ""; position: absolute; left: 23px; top: 24px; width: 5px; height: 1.5px; background: var(--muted); transform: rotate(45deg); pointer-events: none; }
.search .matching-post .title { font-size: 14px; }
.sidebar-nav > ul { margin: 0 18px; }
.sidebar-nav > ul > li.group { margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; }
.sidebar-nav > ul > li.group:first-child { margin-top: 0; }
.sidebar-nav > ul > li.group > ul { padding: 7px 0 0; }
.sidebar-nav li a { padding: 8px 12px; font-size: 13px; line-height: 1.5; font-weight: 400; letter-spacing: 0; text-decoration: none; transition: background .16s, color .16s; }
.sidebar-nav li a.page-link { border-radius: 6px; }
.sidebar-nav li a:hover { background: var(--brand-soft); }
.sidebar-nav li.active > a.page-link,
.sidebar-nav li:has(.active) > a.page-link,
.sidebar-nav li:has(> .app-sub-sidebar) > a.page-link { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }
.sidebar-nav .app-sub-sidebar { margin: 8px 0 12px 14px; padding: 0 0 0 13px; border-left: 1px solid var(--line); }
.sidebar-nav .app-sub-sidebar a { padding: 5px 9px; font-size: 12px; }
.app-nav { border-bottom: 1px solid var(--border-color); background: color-mix(in srgb, var(--surface) 96%, transparent); font-size: 13px; }
.app-nav::before { content: "开发者文档"; margin-right: auto; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.app-nav > ul { gap: 26px; }
.app-nav > ul > li > a { display: inline-block; padding: 7px 0; text-decoration: none; }
.app-nav > ul > li.active > a { color: var(--brand-strong); font-weight: 650; }
.app-nav > ul > li:last-child > a { padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--ink); }
.app-nav > ul > li:last-child > a::after { content: " ↗"; margin-left: 9px; color: var(--muted); }
.sidebar-toggle { width: 16px; }
.sidebar-toggle-button { width: 16px; border: 1px solid var(--border-color); border-left: 0; border-radius: 0 5px 5px 0; }

/* 正文阅读与代码示例。 */
.markdown-section { padding: 36px 0 64px; line-height: 1.95; }
.markdown-section h1 { margin: 0 0 24px; color: var(--ink); font-size: 38px; font-weight: 720; line-height: 1.4; letter-spacing: -.04em; }
.markdown-section h2 { margin-top: 2.6em; padding-bottom: 13px; border-bottom: 1px solid var(--border-color); font-size: 23px; font-weight: 650; line-height: 1.5; letter-spacing: -.02em; }
.markdown-section h3 { margin-top: 2em; font-size: 18px; line-height: 1.6; }
.markdown-section p { margin-block: 1.1em; }
.markdown-section > h1 + p { margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.markdown-section code { border-radius: 4px; font-size: .88em; }
.markdown-section pre { --border-radius: 12px; --font-size-mono: 13px; margin-block: 24px; border: 1px solid var(--night-line); box-shadow: 0 6px 16px color-mix(in srgb, var(--night) 4%, transparent); }
/* Docsify 的代码内边距带有 !important，这里为语言标签和复制按钮留出独立空间。 */
.markdown-section pre[data-lang] > code { padding: 46px 24px 22px !important; color: var(--codeblock-color); line-height: 1.85; tab-size: 4; }
.markdown-section pre[data-lang]::after { top: 18px; right: auto; left: 24px; padding: 0; color: var(--night-muted); font-size: 10px; letter-spacing: .12em; opacity: 1; }
.markdown-section .copy-code { position: absolute; top: 10px; right: 12px; margin: 0; padding: 4px 9px; border: 1px solid var(--night-line); border-radius: 5px; background: var(--night-raised); color: var(--night-text); font: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; }
.markdown-section .copy-code:hover { border-color: var(--accent); color: var(--surface-raised); }
.markdown-section .copy-code:focus-visible { outline-color: var(--accent-soft); }
.markdown-section table { display: table; width: 100%; margin-block: 24px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; font-size: 14px; }
.markdown-section tr { border: 0; background: transparent; }
.markdown-section tr:nth-child(2n) { background: var(--surface-muted); }
.markdown-section td, .markdown-section th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border-color); text-align: left; }
.markdown-section th { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.markdown-section tr:last-child td { border-bottom: 0; }
.markdown-section blockquote { padding: 5px 20px; border-left: 3px solid var(--brand-line); border-radius: 0 8px 8px 0; background: var(--brand-soft); color: var(--text); }
.markdown-section .callout { padding: 18px 22px 18px 48px; border-radius: 8px; line-height: 1.85; }
.markdown-section .callout.tip { --callout-bg: var(--brand-soft); --callout-border-color: var(--brand-line); --callout-color: var(--text); }
.markdown-section .callout.tip::before { background-color: var(--brand); }
.markdown-section .callout.warning { --callout-bg: var(--warning-bg); --callout-border-color: var(--warning-line); --callout-color: var(--warning-text); }
.markdown-section .callout.warning::before { background-color: var(--warning-line); }

/* 首页主视觉、能力摘要与指南入口。 */
body:has(.hero) { --content-max-width: 1120px; }
.markdown-section:has(.hero) { padding-top: 0; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; overflow: hidden; padding: 46px 34px 42px 44px; border: 1px solid var(--night-line); border-radius: 20px; background: var(--night); color: var(--night-text); }
.hero::before { content: ""; position: absolute; inset: 0 0 0 40%; background-image: linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, var(--night)); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 27px; color: var(--night-muted); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.eyebrow > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.markdown-section .hero h1 { margin: 0; color: var(--night-text); font-size: clamp(48px, 4.6vw, 68px); font-weight: 650; line-height: 1.08; letter-spacing: -.065em; }
.hero h1 > span { display: block; margin-top: 22px; color: var(--accent); font-size: .52em; font-weight: 500; line-height: 1.55; letter-spacing: -.025em; }
.hero .intro { max-width: 390px; margin: 20px 0 27px; color: var(--night-muted); font-size: 13px; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions a { display: flex; align-items: center; gap: 24px; padding: 11px 19px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .18s, transform .18s; }
.hero-actions a.primary { background: var(--accent); color: var(--ink); }
.hero-actions a.primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.hero-actions a.secondary { border-color: var(--night-line); color: var(--night-text); }
.hero-actions a.secondary:hover { background: var(--night-raised); }
.hero-actions a:focus-visible { outline-color: var(--accent); }
.hero .hero-caption { margin: 22px 0 0; color: var(--night-muted); font-size: 10px; letter-spacing: .08em; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; margin: 0; }

/* 代码输入演示与编译路径；计时器和动效共用同一个运行状态。 */
.markdown-section .code-demo { margin: 0; overflow: hidden; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-raised); box-shadow: 0 18px 50px color-mix(in srgb, var(--night) 60%, transparent); }
.code-demo figcaption { display: flex; align-items: center; gap: 8px; min-height: 49px; padding: 10px 15px; border-bottom: 1px solid var(--night-line); color: var(--night-text); font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-demo figcaption > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-demo figcaption small { color: var(--night-muted); font: 10px var(--font-family); }
.demo-led { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
.markdown-section .demo-toggle { flex-shrink: 0; margin: 0 0 0 auto; padding: 4px 7px; border: 1px solid var(--night-line); border-radius: 4px; background: transparent; color: var(--night-muted); font: 10px var(--font-family); cursor: pointer; }
.markdown-section .demo-toggle:hover { border-color: var(--accent); color: var(--night-text); }
.markdown-section .demo-toggle:focus-visible { outline-color: var(--accent); }
.markdown-section .demo-toggle[hidden] { display: none; }
.demo-editor { display: flex; gap: 17px; height: 191px; padding: 24px 20px; background: var(--night); }
.demo-gutter { flex-shrink: 0; color: var(--night-muted); opacity: .6; font: 11px/28px ui-monospace, SFMono-Regular, Consolas, monospace; user-select: none; }
.markdown-section .demo-code, .markdown-section .demo-command { display: block; min-width: 0; margin: 0; padding: 0; border-radius: 0; background: transparent; color: var(--night-text); font: 12px/28px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.demo-code::after, .demo-command::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; background: var(--accent); vertical-align: -2px; opacity: 0; }
.code-demo[data-phase="source"] .demo-code::after,
.code-demo[data-phase="build"] .demo-command::after { opacity: 1; }
.code-demo[data-motion="running"][data-phase="source"] .demo-code::after,
.code-demo[data-motion="running"][data-phase="build"] .demo-command::after { animation: cursor-blink 1s steps(1) infinite; }
.demo-terminal { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); background: var(--night); }
.demo-prompt { color: var(--accent); font: 13px ui-monospace, monospace; }
.demo-flow { position: relative; overflow: hidden; padding: 8px 10px 0; }
.demo-signal { position: absolute; top: 0; left: 0; width: 35%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; }
.code-demo[data-phase="native"] .demo-signal { animation: signal-pass 1.6s linear infinite; animation-play-state: paused; }
.code-demo[data-motion="running"][data-phase="native"] .demo-signal { opacity: 1; animation-play-state: running; }
.code-demo[data-motion="complete"] .demo-signal { animation: none; }
.demo-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 15px; font-size: 10px; }
.demo-status { color: var(--night-muted); }
.markdown-section .demo-footer a { color: var(--accent-soft); text-decoration: none; }
.markdown-section .demo-footer a:hover { color: var(--night-text); }
.demo-footer a:focus-visible { outline-color: var(--accent); }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes signal-pass { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 56px; padding: 32px 0; border-bottom: 1px solid var(--border-color); }
.feature-grid > div { padding: 0 28px; border-left: 1px solid var(--border-color); }
.feature-grid > div:first-child { padding-left: 4px; border-left: 0; }
.feature-grid > div:last-child { padding-right: 0; }
.feature-number { display: block; margin-bottom: 10px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.markdown-section .feature-grid h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.markdown-section:has(.hero) > h2 { margin-top: 50px; padding-bottom: 0; border: 0; font-size: 26px; }
.markdown-section:has(.hero) > h2 + p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.markdown-section:has(.hero) > p { font-size: 14px; }
.markdown-section .start-guide { display: flex; align-items: center; gap: 24px; margin: 27px 0 18px; padding: 25px 28px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; transition: border-color .18s, background .18s; }
.start-guide:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.start-symbol { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid var(--brand-line); border-radius: 11px; background: var(--surface-raised); color: var(--brand-strong); font: 23px ui-monospace, monospace; }
.start-copy { display: flex; flex-direction: column; gap: 5px; }
.guide-kicker { color: var(--muted); font: 10px var(--font-family); letter-spacing: .1em; }
.start-copy strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.start-copy > span:last-child { color: var(--muted); font-size: 12px; }
.guide-arrow { margin-left: auto; font-size: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.markdown-section .guide-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: 0 8px 24px color-mix(in srgb, var(--night) 7%, transparent); }
.guide-index { display: flex; justify-content: space-between; margin-bottom: 17px; color: var(--muted); font: 11px ui-monospace, monospace; }
.guide-index > span { color: var(--muted); font-size: 16px; }
.guide-card strong { margin-bottom: 9px; color: var(--ink); font-size: 17px; font-weight: 600; }
.guide-card strong + span { margin-bottom: 22px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.guide-meta { margin-top: auto; color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: var(--content-max-width); max-width: calc(100% - var(--content-margin-inline) * 2); margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--border-color); color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 1200px) {
  :root { --content-margin-inline: 32px; --sidebar-width: 232px; }
  .hero { padding: 36px 24px 36px 32px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .04em; }
  .hero .intro { font-size: 12px; }
  .hero-actions { gap: 8px; }
  .hero-actions a { gap: 17px; padding: 10px 14px; font-size: 12px; }
  .markdown-section .guide-card { padding: 20px; }
  .app-nav::before { display: none; }
}

@media (min-width: 641px) and (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 520px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > div { padding-inline: 14px; }
  .feature-grid p br { display: none; }
  .markdown-section .start-guide { gap: 16px; padding: 22px; }
  .start-symbol { display: none; }
}

@media (max-width: 640px) {
  :root { --content-margin-inline: 20px; --sidebar-width: 280px; }
  .mobile-header { display: flex; align-items: center; position: fixed; z-index: 20; inset: 0 0 auto; height: 64px; padding-left: 64px; border-bottom: 1px solid var(--border-color); background: color-mix(in srgb, var(--surface) 96%, transparent); font-size: 16px; font-weight: 650; letter-spacing: -.02em; backdrop-filter: blur(12px); }
  .mobile-header a { color: var(--ink); text-decoration: none; }
  .mobile-header span { color: var(--muted); font-size: 13px; font-weight: 400; }
  .sidebar { z-index: 30; padding-bottom: 25px; }
  .sidebar .app-name { padding: 24px; }
  .app-nav-merged { margin: 0 24px 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
  .app-nav-merged > ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
  .app-nav-merged > ul > li { margin: 0; }
  .app-nav-merged a { padding: 4px 0; font-size: 12px; text-decoration: none; }
  body .sidebar-toggle { position: fixed; z-index: 40; top: 12px; bottom: auto; left: 14px; width: 40px; height: 40px; translate: 0; background: transparent; }
  body:has(.sidebar.show) .sidebar-toggle { left: min(290px, calc(100vw - 44px)); width: 40px; translate: 0; }
  .sidebar-toggle-button { width: 40px; height: 40px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .sidebar-toggle-button span { width: 15px; background: var(--brand-strong); }
  body:has(.sidebar.show) main::before { z-index: 25; background: color-mix(in srgb, var(--night) 34%, transparent); backdrop-filter: blur(2px); }
  body .markdown-section { margin-top: 64px; padding-top: 28px; padding-bottom: 40px; }
  body .markdown-section:has(.hero) { margin-top: 84px; padding-top: 0; }
  .markdown-section h1 { font-size: 30px; }
  .markdown-section h2 { font-size: 22px; }
  .markdown-section [id] { scroll-margin-top: 84px; }
  .markdown-section > h1 + p { font-size: 15px; }
  .markdown-section pre { --font-size-mono: 12px; }
  .markdown-section pre[data-lang] > code { padding-inline: 18px !important; }
  .markdown-section pre[data-lang]::after { left: 18px; }
  .markdown-section table { display: block; width: 100%; overflow-x: auto; }
  .markdown-section th, .markdown-section td { padding: 10px 12px; }
  .hero { grid-template-columns: 1fr; padding: 29px 26px 15px; border-radius: 15px; }
  .hero .eyebrow { margin-bottom: 23px; font-size: 10px; }
  .markdown-section .hero h1 { font-size: 53px; }
  .hero h1 > span { margin-top: 18px; font-size: 28px; }
  .hero .intro { margin-block: 19px 23px; font-size: 12px; }
  .hero-actions a { padding: 11px 16px; }
  .hero .hero-caption { margin-top: 20px; }
  .hero-visual { width: 100%; max-width: none; margin: 0; }
  .hero { gap: 26px; padding-bottom: 26px; }
  .demo-editor { gap: 12px; height: 181px; padding: 20px 12px; }
  .demo-terminal { padding-inline: 12px; }
  .markdown-section .demo-code, .markdown-section .demo-command { font-size: 10px; }
  .code-demo figcaption { gap: 6px; padding-inline: 10px; font-size: 10px; }
  .code-demo figcaption small { display: none; }
  .demo-footer { padding-inline: 10px; font-size: 9px; }
  .feature-grid { gap: 18px; margin-bottom: 32px; padding: 26px 0; }
  .feature-grid > div { padding: 0; border: 0; }
  .feature-number { margin-bottom: 9px; font-size: 8px; letter-spacing: 0; }
  .markdown-section .feature-grid h2 { font-size: 13px; }
  .feature-grid p { font-size: 11px; line-height: 1.75; }
  .feature-grid p br { display: none; }
  .markdown-section:has(.hero) > h2 { margin-top: 35px; font-size: 23px; }
  .markdown-section .start-guide { gap: 12px; padding: 22px; }
  .start-symbol { display: none; }
  .start-copy strong { font-size: 16px; }
  .start-copy > span:last-child { font-size: 12px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .markdown-section .guide-card { padding: 18px 16px; }
  .guide-card strong { font-size: 15px; }
  .guide-index { margin-bottom: 14px; }
  .guide-card strong + span { font-size: 11px; margin-bottom: 16px; }
  .guide-meta { font-size: 8px; letter-spacing: .04em; }
  .site-footer { flex-direction: column; padding-block: 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .demo-code::after, .demo-command::after, .demo-signal { display: none; }
}

@media print {
  .mobile-header, .sidebar, .sidebar-toggle, .app-nav, .copy-code { display: none !important; }
  main > .content { position: static; overflow: visible; }
  .markdown-section, .site-footer { width: auto; max-width: none; }
  .hero, .start-guide, .guide-card, pre { break-inside: avoid; }
}
