@charset "UTF-8";

:root {
  --ink: #14221b;
  --ink-soft: #46554d;
  --muted: #6c7871;
  --green: #157347;
  --green-bright: #2fb36f;
  --green-dark: #10231a;
  --green-pale: #e9f4ec;
  --paper: #f6f7f3;
  --white: #fff;
  --line: #dfe5de;
  --line-dark: #cbd4cc;
  --code: #10231a;
  --amber: #9a5b0a;
  --amber-bg: #fff8e8;
  --radius: 14px;
  --shadow: 0 16px 44px rgba(18, 42, 29, .08);
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Noto Sans SC", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); }
code { font-size: .94em; }
p, h1, h2, h3 { margin-top: 0; }
p:last-child { margin-bottom: 0; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #56b987; outline-offset: 4px; }
::selection { background: #bce7ce; color: #10231a; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: -80px; padding: 10px 18px; border-radius: 8px; background: var(--green-dark); color: white; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; z-index: 100; top: 0; height: 78px; border-bottom: 1px solid rgba(203, 212, 204, .8); background: rgba(246, 247, 243, .94); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #b8f4d0; background: var(--green-dark); font: 700 22px/1 var(--mono); letter-spacing: -3px; padding-right: 3px; }
.brand-mark span { color: #49cf85; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 16px; line-height: 1.4; letter-spacing: .02em; }
.brand-copy small { margin-top: 2px; color: var(--muted); font: 10px/1.3 var(--mono); letter-spacing: .06em; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-nav a { position: relative; padding: 25px 0; color: #46534c; font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 15px; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--green); transform: translateX(-50%); }
.header-search { height: 38px; padding: 0 9px 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; color: var(--muted); font-size: 13px; }
.header-search .icon { width: 16px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #f4f6f2; color: #7a837d; font-size: 11px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.icon-button:hover { background: #edf0eb; }
.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding: 84px 0 76px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -210px; border: 1px solid #d9e6dc; border-radius: 50%; box-shadow: 0 0 0 80px rgba(231, 240, 231, .35), 0 0 0 160px rgba(231, 240, 231, .18); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 23px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero-kicker span { width: 22px; height: 2px; background: var(--green-bright); }
.hero h1 { margin-bottom: 22px; font-size: clamp(42px, 4.5vw, 65px); line-height: 1.18; letter-spacing: -.045em; font-weight: 800; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { margin-bottom: 30px; color: var(--ink-soft); font-size: 17px; line-height: 1.9; }
.hero-copy > p code { padding: 2px 5px; border-radius: 4px; background: #e7ece6; color: var(--green); }
.hero-search { display: flex; align-items: center; height: 58px; max-width: 555px; padding-left: 17px; border: 1px solid var(--line-dark); border-radius: 11px; background: white; box-shadow: 0 8px 25px rgba(29, 59, 40, .06); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(21, 115, 71, .1); }
.hero-search > .icon { color: #718078; }
.hero-search input { min-width: 0; flex: 1; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.hero-search input::placeholder { color: #8a948e; }
.hero-search button { height: 44px; margin-right: 6px; padding: 0 17px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 7px; background: var(--green); color: white; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hero-search button:hover { background: #105d3a; }
.hero-search button .icon { width: 16px; }
.quick-search { margin-top: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.quick-search span { margin-right: 2px; }
.quick-search a { padding: 1px 8px; border: 1px solid var(--line); border-radius: 5px; background: #f9faf7; font-family: var(--mono); }
.quick-search a:hover { border-color: var(--green); color: var(--green); }
.terminal-wrap { position: relative; padding: 10px 0 35px; }
.terminal-window { position: relative; overflow: hidden; border: 1px solid #293c32; border-radius: 14px; background: var(--code); box-shadow: 0 30px 65px rgba(19, 41, 28, .2); transform: rotate(1deg); }
.terminal-title { height: 47px; padding: 0 17px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #293b31; background: #182b21; color: #8e9d94; font: 11px var(--mono); }
.terminal-title > div { display: flex; gap: 7px; }
.terminal-title i { width: 9px; height: 9px; border-radius: 50%; background: #e36b62; }
.terminal-title i:nth-child(2) { background: #dcaf50; }
.terminal-title i:nth-child(3) { background: #5ab77b; }
.terminal-badge { justify-self: end; padding: 2px 7px; border: 1px solid #3b5044; border-radius: 4px; font-size: 9px; letter-spacing: .08em; }
.terminal-body { min-height: 305px; padding: 26px 26px 18px; color: #d5e3da; font: 13px/1.9 var(--mono); }
.terminal-line { white-space: nowrap; }
.terminal-line strong { color: #f1f8f3; font-weight: 500; }
.t-prompt { color: #69d99a; }
.t-path { color: #7db7e8; }
.t-output { padding: 2px 0 8px 15px; color: #d7ded9; }
.t-muted { color: #91a299; }
.cursor { display: inline-block; width: 8px; height: 16px; vertical-align: -3px; background: #7cdda6; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-tip { display: flex; align-items: center; gap: 13px; margin: 0 20px 20px; padding: 12px 16px; border: 1px solid #30483b; border-radius: 8px; background: #172c21; }
.terminal-tip > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: #254333; color: #7ce0a7; font: 12px var(--mono); }
.terminal-tip p { margin: 0; color: #90a99a; font-size: 11px; line-height: 1.55; }
.terminal-tip strong { color: #d9e8df; font-size: 12px; }
.floating-note { position: absolute; right: -24px; bottom: 0; display: flex; align-items: center; gap: 11px; padding: 13px 19px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.floating-note > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-pale); color: var(--green); }
.floating-note .icon { width: 19px; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 12px; }
.floating-note small { margin-top: 1px; color: var(--muted); font-size: 10px; }
.stats-strip { border-bottom: 1px solid var(--line); background: #fafbf8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 25px 0; }
.stats > div { display: flex; align-items: baseline; justify-content: center; gap: 10px; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats strong { font: 700 26px var(--mono); letter-spacing: -.04em; }
.stats strong span { font-size: 15px; }
.stats div > span { color: var(--muted); font-size: 12px; }

.section { padding: 76px 0; }
.section-tint { border-block: 1px solid var(--line); background: #f0f3ed; }
.section-heading { margin-bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--green); font: 700 10px/1.4 var(--mono); letter-spacing: .16em; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 32px); line-height: 1.4; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13px; font-weight: 700; white-space: nowrap; }
.text-link .icon { width: 17px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 185px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover { border-color: #9cc4aa; box-shadow: var(--shadow); transform: translateY(-3px); }
.category-icon { width: 39px; height: 39px; margin-bottom: 19px; display: grid; place-items: center; border-radius: 9px; background: var(--green-pale); color: var(--green); }
.category-icon .icon { width: 21px; }
.category-card h3 { margin-bottom: 7px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.category-card h3 span { padding: 0 6px; border-radius: 4px; background: #f0f2ee; color: var(--muted); font: 10px/18px var(--mono); }
.category-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.category-card > .icon { position: absolute; top: 28px; right: 21px; width: 16px; color: #a2ada5; transition: transform .2s; }
.category-card:hover > .icon { color: var(--green); transform: translateX(3px); }
.command-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.command-card { min-width: 0; padding: 19px 20px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.command-card:hover { border-color: #9cc4aa; box-shadow: 0 8px 25px rgba(18, 42, 29, .06); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.command-name { display: flex; align-items: center; gap: 7px; }
.command-name code { color: var(--ink); font-size: 18px; font-weight: 700; }
.command-name .icon { width: 14px; color: #9aa79e; opacity: 0; transform: translateX(-4px); transition: .2s; }
.command-card:hover .command-name { color: var(--green); }
.command-card:hover .command-name .icon { opacity: 1; transform: translateX(0); }
.command-card p { overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-label { overflow: hidden; color: #87938b; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.center-action { margin-top: 30px; text-align: center; }
.button { min-height: 43px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; }
.button .icon { width: 17px; }
.button-outline { border-color: var(--line-dark); background: white; }
.button-outline:hover { border-color: var(--green); color: var(--green); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #105d3a; }
.button-light { background: #e6f7ec; color: #123d27; }
.button-light:hover { background: white; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.guide-card { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: #9cc4aa; transform: translateY(-2px); }
.guide-number { padding-top: 2px; color: #c1ccc4; font: 700 30px/1 var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 15px; color: var(--green); font-size: 10px; font-weight: 700; }
.eyebrow span { display: flex; align-items: center; gap: 4px; }
.eyebrow .icon { width: 13px; height: 13px; }
.guide-card h3 { margin: 8px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.guide-card p { margin-bottom: 15px; color: var(--muted); font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card .text-link { font-size: 12px; }
.cta-section { padding-top: 0; }
.cta-panel { position: relative; overflow: hidden; padding: 43px 50px; display: flex; align-items: center; justify-content: space-between; gap: 35px; border-radius: 16px; background: var(--green-dark); color: white; }
.cta-panel::after { content: ">_"; position: absolute; right: 30%; top: -70px; color: rgba(255,255,255,.035); font: 800 250px/1 var(--mono); transform: rotate(-10deg); pointer-events: none; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .section-kicker { color: #6fda9c; }
.cta-panel h2 { margin-bottom: 9px; font-size: 29px; letter-spacing: -.02em; }
.cta-panel p { margin: 0; color: #aabdb1; font-size: 13px; }

.site-footer { padding: 55px 0 0; border-top: 1px solid var(--line); background: #eef1eb; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 70px; padding-bottom: 42px; }
.brand-footer { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 12px; line-height: 1.9; }
.footer-column h2 { margin-bottom: 15px; font-size: 13px; }
.footer-column > a { display: block; margin: 8px 0; color: var(--muted); font-size: 12px; }
.footer-column a:hover { color: var(--green); }
.footer-categories > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.footer-categories a { color: var(--muted); font-size: 12px; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #7a857e; font-size: 11px; }

.page-hero { padding: 50px 0 52px; border-bottom: 1px solid var(--line); background: #f0f3ed; text-align: center; }
.page-hero .breadcrumbs { justify-content: center; margin-bottom: 30px; }
.narrow-heading { max-width: 790px; }
.page-hero h1 { margin-bottom: 13px; font-size: clamp(31px, 4vw, 43px); line-height: 1.35; letter-spacing: -.035em; }
.page-hero p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.compact-hero { padding-bottom: 44px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .icon { width: 11px; height: 11px; color: #a8b0aa; }
.inline-filter { max-width: 580px; height: 48px; margin: 27px auto 0; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-dark); border-radius: 9px; background: white; }
.inline-filter .icon { width: 18px; color: var(--muted); }
.inline-filter input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.library-section { padding-top: 33px; }
.category-pills { margin-bottom: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.category-pills a { padding: 7px 12px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink-soft); font-size: 12px; }
.category-pills a span { color: var(--muted); font: 10px var(--mono); }
.category-pills a:hover, .category-pills a.active { border-color: var(--green); background: var(--green-pale); color: var(--green); }
.library-grid { grid-template-columns: repeat(4, 1fr); }
.empty-state { padding: 50px; text-align: center; color: var(--muted); }
.empty-state a { color: var(--green); text-decoration: underline; }
.category-title-icon { width: 49px; height: 49px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 12px; background: var(--green-pale); color: var(--green); }

.command-hero { padding: 33px 0 37px; border-bottom: 1px solid var(--line); background: #f0f3ed; }
.command-hero .breadcrumbs { margin-bottom: 30px; }
.command-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.command-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.command-meta a, .command-meta span { padding: 2px 8px; border: 1px solid #cad6cd; border-radius: 5px; color: var(--green); font-size: 10px; font-weight: 700; }
.command-meta span { color: var(--muted); }
.command-heading h1 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 13px; }
.command-heading h1 code { font-size: clamp(39px, 5vw, 54px); line-height: 1.2; letter-spacing: -.05em; }
.command-heading h1 small { color: var(--muted); font-size: 20px; font-weight: 500; }
.command-heading p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.hero-guide-link { margin-bottom: 5px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 65px; padding-top: 50px; padding-bottom: 75px; }
.command-article { min-width: 0; }
.article-section { margin-bottom: 49px; }
.article-section > h2 { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 23px; line-height: 1.45; letter-spacing: -.02em; }
.article-section > h2 > span { width: 29px; height: 29px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: var(--green-pale); color: var(--green); font: 700 11px var(--mono); }
.article-section > p { color: var(--ink-soft); font-size: 14px; line-height: 2; }
.article-section > p code, .guide-section > p code, .options-table td code, .article-note code { padding: 2px 5px; border-radius: 4px; background: #e9ede7; color: #185d3b; overflow-wrap: anywhere; }
.article-section .lead { margin-bottom: 25px; font-size: 15px; }
.syntax-box { position: relative; overflow: hidden; border: 1px solid #293d31; border-radius: 10px; background: var(--code); color: #e0eee5; }
.syntax-box > div { padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #2c3f34; background: #172a20; }
.syntax-box > div > span { color: #92a69a; font-size: 10px; }
.syntax-box small { color: #758c7e; font-size: 9px; }
.syntax-box pre { margin: 0; padding: 24px 65px 24px 20px; overflow-x: auto; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.syntax-box > .copy-button { position: absolute; right: 11px; bottom: 12px; border-color: #3a5042; color: #a9b9af; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.options-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.options-table th { padding: 12px 18px; background: #edf1eb; color: var(--muted); font-size: 11px; text-align: left; }
.options-table th:first-child { width: 26%; }
.options-table td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
.options-table td:first-child { white-space: nowrap; }
.options-table td code { color: var(--green); font-weight: 700; background: transparent; }
.options-table td:last-child { color: var(--ink-soft); }
.examples-list { display: flex; flex-direction: column; gap: 29px; }
.example-item { min-width: 0; }
.example-heading { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 9px; }
.example-heading h3 { margin: 0; font-size: 14px; line-height: 1.8; font-weight: 600; }
.example-number { padding-top: 3px; color: #8b9a90; font: 10px var(--mono); }
.example-item > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.code-block { overflow: hidden; border: 1px solid #2b3e33; border-radius: 9px; background: var(--code); }
.code-head { height: 36px; padding: 0 11px 0 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2a3e32; background: #172a20; }
.code-head > span { color: #789081; font-size: 9px; }
.copy-button { padding: 4px 6px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #8fa698; font-size: 10px; }
.copy-button:hover { background: #263c2f; color: #c3e7d1; }
.copy-button .icon { width: 13px; height: 13px; }
.copy-button.copied { color: #70dfa2; }
.code-block pre { margin: 0; padding: 18px; overflow-x: auto; color: #edf7f0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt { color: #68d697; user-select: none; }
.example-output { margin-top: 9px; padding: 12px 16px; border-left: 3px solid #b8c6bb; border-radius: 0 7px 7px 0; background: #ecefe9; }
.example-output > span { color: var(--muted); font-size: 9px; }
.example-output pre { margin: 3px 0 0; overflow-x: auto; color: #546159; font-size: 11px; white-space: pre-wrap; }
.article-note { margin: -15px 0 48px; padding: 18px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cbded0; border-radius: 9px; background: var(--green-pale); }
.article-note > .icon { margin-top: 2px; color: var(--green); }
.article-note strong { font-size: 13px; }
.article-note p { margin: 4px 0 0; color: #42614e; font-size: 12px; line-height: 1.85; }
.article-note.warning { border-color: #ead8b4; background: var(--amber-bg); }
.article-note.warning > .icon { color: var(--amber); }
.article-note.warning p { color: #755628; }
.faq-section details { border-bottom: 1px solid var(--line); }
.faq-section summary { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary .icon { width: 15px; color: var(--muted); transition: transform .2s; }
.faq-section details[open] summary .icon { transform: rotate(90deg); }
.faq-section details p { padding: 0 25px 17px 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.related-section > h2 { font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-grid a { padding: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.related-grid a:hover { border-color: var(--green); }
.related-grid code { color: var(--green); font-weight: 700; }
.related-grid span { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.related-grid .icon { width: 13px; color: #9aa69e; }
.article-pager { padding-top: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.article-pager a { display: flex; flex-direction: column; gap: 3px; }
.article-pager a:last-child { text-align: right; }
.article-pager span { color: var(--muted); font-size: 10px; }
.article-pager code { color: var(--green); font-size: 17px; font-weight: 700; }
.article-sidebar { min-width: 0; }
.sidebar-box { margin-bottom: 22px; padding: 19px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.sidebar-box h2 { margin-bottom: 12px; font-size: 12px; }
.sidebar-box > a { padding: 8px 0; display: block; border-bottom: 1px solid #edf0eb; color: var(--muted); font-size: 11px; }
.sidebar-box > a:hover { color: var(--green); }
.sidebar-box > a:last-child { border-bottom: 0; }
.sidebar-box > a code { margin-right: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.sidebar-box > a span { display: block; overflow: hidden; padding-left: 1px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-box.toc a { padding: 6px 0; border: 0; }
.sidebar-box .sidebar-all { margin-top: 10px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; color: var(--green); }
.sidebar-all .icon { width: 14px; }
.sidebar-help { padding: 22px; border-radius: 10px; background: var(--green-dark); color: white; }
.sidebar-help > .icon { margin-bottom: 14px; color: #76d89f; }
.sidebar-help strong { font-size: 13px; }
.sidebar-help p { margin: 7px 0 13px; color: #a5b9ac; font-size: 11px; }
.sidebar-help a { display: flex; align-items: center; gap: 5px; color: #7adea6; font-size: 11px; }
.sidebar-help a .icon { width: 14px; }
@media (min-width: 1001px) { .article-sidebar { position: relative; } .article-sidebar > * { position: sticky; top: 100px; } .article-sidebar > .sidebar-box + * { position: static; } }

.guide-hero { padding: 33px 0 50px; border-bottom: 1px solid var(--line); background: #f0f3ed; }
.guide-hero .breadcrumbs { margin-bottom: 36px; }
.guide-hero-inner { max-width: 850px; }
.guide-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 17px; color: var(--green); font-size: 11px; font-weight: 600; }
.guide-meta span { display: flex; align-items: center; gap: 5px; }
.guide-meta .icon { width: 14px; }
.guide-hero h1 { max-width: 780px; margin-bottom: 18px; font-size: clamp(31px, 4vw, 44px); line-height: 1.4; letter-spacing: -.035em; }
.guide-hero-inner > p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: space-between; gap: 70px; padding-top: 50px; padding-bottom: 75px; }
.guide-toc { align-self: start; position: sticky; top: 105px; }
.guide-toc h2 { margin-bottom: 13px; font-size: 12px; }
.guide-toc > a { padding: 9px 0; display: flex; align-items: flex-start; gap: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.guide-toc > a span { color: #9aa69e; font: 10px/1.7 var(--mono); }
.guide-toc > a:hover { color: var(--green); }
.reading-note { margin-top: 20px; padding: 13px; display: flex; align-items: flex-start; gap: 8px; border-radius: 7px; background: #e9eee7; color: var(--muted); font-size: 10px; line-height: 1.7; }
.reading-note .icon { width: 15px; margin-top: 1px; color: var(--green); }
.guide-section { margin-bottom: 54px; }
.guide-section h2 { margin-bottom: 20px; display: flex; align-items: center; gap: 13px; font-size: 23px; line-height: 1.5; }
.guide-section h2 > span { color: #9bad9f; font: 700 18px var(--mono); }
.guide-section > p { color: var(--ink-soft); font-size: 14px; line-height: 2.05; }
.guide-examples { margin-top: 22px; display: flex; flex-direction: column; gap: 20px; }
.guide-example > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.guide-output { margin: 8px 0 0; padding: 11px 15px; border-left: 3px solid #b8c6bb; background: #ecefe9; color: #546159; font-size: 11px; white-space: pre-wrap; }
.next-guide { padding: 21px 24px; display: grid; grid-template-columns: 1fr auto; border: 1px solid #bcd5c4; border-radius: 10px; background: var(--green-pale); }
.next-guide > span { grid-column: 1; color: var(--green); font-size: 10px; }
.next-guide strong { grid-column: 1; font-size: 15px; }
.next-guide > .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green); }
.guide-index-grid .guide-card { min-height: 250px; }
.learning-promise { margin-top: 30px; padding: 19px 25px; display: flex; align-items: center; justify-content: space-around; gap: 20px; border: 1px solid var(--line); border-radius: 10px; background: #eef2ec; }
.learning-promise > div { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; }
.learning-promise .icon { width: 16px; color: var(--green); }

.print-button { margin-top: 24px; }
.cheat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cheat-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.cheat-group h2 { margin: 0; padding: 15px 19px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: #edf1eb; font-size: 14px; }
.cheat-group h2 .icon { width: 18px; color: var(--green); }
.cheat-row { min-height: 51px; padding: 10px 15px 10px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #edf0eb; }
.cheat-row:last-child { border: 0; }
.cheat-row > span { flex: 0 0 30%; color: var(--muted); font-size: 11px; }
.cheat-row button { min-width: 0; padding: 4px 6px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border: 0; border-radius: 4px; background: transparent; text-align: right; }
.cheat-row button:hover { background: var(--green-pale); }
.cheat-row code { overflow-wrap: anywhere; color: #185d3b; font-size: 11px; }
.cheat-row .icon { width: 13px; color: #98a59c; }
.cheat-note { margin-top: 25px; display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; }
.cheat-note .icon { width: 15px; margin-top: 3px; color: var(--amber); }

.search-dialog { width: min(650px, calc(100% - 30px)); max-height: min(680px, calc(100dvh - 70px)); padding: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 35px 100px rgba(5, 23, 13, .3); }
.search-dialog::backdrop { background: rgba(9, 24, 16, .62); backdrop-filter: blur(4px); }
.dialog-head { padding: 17px 20px 10px; display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 14px; }
.dialog-search { height: 52px; margin: 0 20px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-dark); border-radius: 9px; background: white; }
.dialog-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,115,71,.08); }
.dialog-search > .icon { color: var(--muted); }
.dialog-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-results { overflow-y: auto; }
.search-results.compact { min-height: 190px; max-height: 420px; padding: 13px 20px 18px; }
.search-hint { padding: 40px 15px; color: var(--muted); font-size: 12px; text-align: center; }
.search-result { padding: 13px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 15px; border: 1px solid transparent; border-radius: 8px; }
.search-result:hover, .search-result.selected { border-color: #c2d8c8; background: white; }
.search-result-title { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.search-result-title code { color: var(--green); }
.search-result-title span { padding: 0 5px; border-radius: 3px; background: #e6ece6; color: var(--muted); font-size: 9px; font-weight: 500; }
.search-result p { grid-column: 1; overflow: hidden; margin: 1px 0 0; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.search-result > .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 15px; color: #9aa69e; }
.dialog-foot { padding: 10px 20px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); background: #edf1eb; color: var(--muted); font-size: 9px; }
.dialog-foot a { color: var(--green); }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 28px; padding: 10px 17px; border-radius: 8px; background: var(--green-dark); color: white; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.search-page-section { padding-top: 38px; }
.search-page-container { max-width: 820px; }
.page-search-form { height: 58px; padding-left: 17px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; }
.page-search-form > .icon { color: var(--muted); }
.page-search-form input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; }
.page-search-form .button { height: 44px; margin-right: 6px; }
.search-status { margin: 23px 0 12px; color: var(--muted); font-size: 12px; }
.search-results.full { display: flex; flex-direction: column; gap: 8px; }
.search-results.full .search-result { padding: 18px; border-color: var(--line); background: white; }
.search-results.full .search-result-title { font-size: 15px; }
.search-results.full .search-result p { margin-top: 5px; white-space: normal; font-size: 12px; }
.not-found { min-height: 600px; padding: 85px 0; text-align: center; }
.not-found .container { max-width: 650px; }
.error-code { color: #dfe7df; font: 800 110px/1 var(--mono); letter-spacing: -.09em; }
.not-found h1 { margin-bottom: 13px; font-size: 34px; }
.not-found p { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.not-found .hero-search { margin: 0 auto 22px; }

@media (max-width: 1050px) {
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 48px; }
  .floating-note { right: -5px; }
  .category-grid, .command-grid, .library-grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { gap: 35px; grid-template-columns: minmax(0, 1fr) 230px; }
  .guide-layout { gap: 45px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 36px, 720px); }
  .site-header { height: 68px; }
  .header-inner { gap: 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 14px; }
  .header-search { margin-left: auto; }
  .header-search span, .header-search kbd { display: none; }
  .header-search { width: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .nav-toggle { display: inline-flex; order: 3; }
  .site-nav { position: absolute; top: 67px; left: 0; right: 0; display: none; padding: 10px 18px 16px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 20px rgba(20,40,28,.08); }
  .site-nav.open { display: flex; }
  .site-nav a { flex: 1; padding: 10px; text-align: center; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .hero { padding: 55px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-copy { text-align: center; }
  .hero-kicker, .quick-search { justify-content: center; }
  .hero-copy > p { font-size: 15px; }
  .hero-search { margin-inline: auto; }
  .terminal-wrap { width: min(100%, 570px); margin-inline: auto; }
  .terminal-window { transform: none; }
  .stats strong { font-size: 23px; }
  .stats > div { flex-direction: column; align-items: center; gap: 2px; }
  .category-grid, .command-grid, .library-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 55px 0; }
  .guide-card { grid-template-columns: 40px 1fr; gap: 15px; padding: 22px; }
  .guide-number { font-size: 24px; }
  .cta-panel { padding: 35px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { display: block; padding-top: 40px; }
  .article-sidebar { display: none; }
  .command-article { max-width: 760px; margin-inline: auto; }
  .guide-layout { grid-template-columns: 1fr; padding-top: 35px; }
  .guide-toc { display: none; }
  .guide-article { max-width: 760px; margin-inline: auto; }
}

@media (max-width: 580px) {
  .container { width: calc(100% - 28px); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 13px; }
  .header-inner { gap: 4px; }
  .site-nav { flex-direction: column; }
  .site-nav a { width: 100%; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 41px; }
  .hero-kicker { font-size: 11px; }
  .hero-copy > p br { display: none; }
  .hero-search { height: 54px; padding-left: 13px; }
  .hero-search button { padding: 0 13px; }
  .hero-search button .icon { display: none; }
  .quick-search { gap: 7px; }
  .quick-search > span { width: 100%; }
  .terminal-body { min-height: 270px; padding: 20px 15px 14px; font-size: 10px; }
  .terminal-title { padding: 0 12px; }
  .terminal-tip { margin: 0 12px 12px; }
  .floating-note { right: 10px; bottom: 0; padding: 10px 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stats > div:nth-child(2) { border-right: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 25px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 183px; padding: 18px; }
  .category-card > .icon { top: 23px; right: 16px; }
  .category-card h3 { font-size: 14px; }
  .category-card p { font-size: 11px; }
  .command-grid, .library-grid { gap: 10px; }
  .command-card { padding: 16px 14px; }
  .command-name code { font-size: 16px; }
  .category-label { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0 !important; }
  .cta-panel { padding: 30px 25px; align-items: flex-start; flex-direction: column; }
  .cta-panel h2 { font-size: 24px; }
  .footer-grid { gap: 25px; }
  .footer-bottom { align-items: center; flex-direction: column; gap: 5px; }
  .page-hero { padding: 35px 0 38px; }
  .page-hero h1 { font-size: 30px; }
  .breadcrumbs { line-height: 1.4; }
  .category-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .category-pills a { flex: 0 0 auto; }
  .command-hero { padding: 25px 0 30px; }
  .command-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .command-heading h1 code { font-size: 42px; }
  .command-heading h1 small { font-size: 17px; }
  .command-heading p { font-size: 14px; }
  .hero-guide-link { display: none; }
  .article-layout { padding-bottom: 50px; }
  .article-section { margin-bottom: 40px; }
  .article-section > h2 { font-size: 20px; }
  .article-section .lead { font-size: 14px; }
  .syntax-box > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .options-table { min-width: 480px; }
  .related-grid { grid-template-columns: 1fr; }
  .guide-hero { padding: 25px 0 35px; }
  .guide-hero h1 { font-size: 29px; }
  .guide-meta { flex-wrap: wrap; gap: 9px 15px; }
  .guide-section h2 { align-items: flex-start; font-size: 20px; }
  .guide-section h2 > span { padding-top: 3px; font-size: 14px; }
  .learning-promise { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cheat-grid { grid-template-columns: 1fr; }
  .cheat-row { gap: 8px; }
  .cheat-row > span { flex-basis: 32%; }
  .cheat-row code { font-size: 10px; }
  .cheat-note { text-align: left; }
  .search-dialog { max-height: calc(100dvh - 30px); }
  .dialog-foot > span { display: none; }
  .dialog-foot { justify-content: center; }
  .page-search-form { height: 53px; }
  .page-search-form .button { min-height: 40px; height: 40px; padding-inline: 14px; }
  .not-found { min-height: 520px; padding-top: 65px; }
  .error-code { font-size: 85px; }
  .not-found h1 { font-size: 27px; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .print-button, .cheat-note, .search-dialog, .toast { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .page-hero { padding: 10px 0 25px; background: white; }
  .section { padding: 15px 0; }
  .container { width: 100%; }
  .cheat-grid { gap: 12px; }
  .cheat-group { break-inside: avoid; }
  .cheat-row button { padding: 0; }
  .cheat-row .icon { display: none; }
  a { color: inherit; }
}

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