/* Flowith 3.0 用户教程 — styled with the product's 3.0 tokens (design-tokens/flowith.js):
   neutrals Black 0–95, brand Teal 30, ABC Oracle for Latin, PingFang through the Flowith CJK alias (no Light). */
@font-face{font-family:Oracle;src:url('./oracle-regular.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:Oracle;src:url('./oracle-medium.woff2') format('woff2');font-display:swap;font-weight:500 700}
@font-face{font-family:'Flowith CJK';src:local('PingFangSC-Regular'),local('PingFang SC Regular');font-weight:1 450}
@font-face{font-family:'Flowith CJK';src:local('PingFangSC-Medium'),local('PingFang SC Medium');font-weight:451 550}
@font-face{font-family:'Flowith CJK';src:local('PingFangSC-Semibold'),local('PingFang SC Semibold');font-weight:551 1000}

:root{
  --heavy:#000000;--ink:#17191D;--text:#2D3139;--text-2:#444A56;--muted:#5A6272;--caption:#717B8E;--faint:#A9AFBB;
  --line:#E2E4E8;--line-soft:#ECEDF0;--soft:#F1F2F4;--canvas:#F2F3F4;--side:#F6F7F8;
  --brand:#007B99;--brand-strong:#005266;--brand-soft:#E5FAFF;--brand-tint:#CCF5FF;
  --shadow-float:0 4px 20px rgb(45 49 57 / .08);--shadow-toolbar:0 4px 12px rgb(41 37 100 / .04);
  --header:60px;--sidebar:280px;--toc:224px;--bleed:0px;
  font-family:Oracle,'Flowith CJK','PingFang SC','Microsoft YaHei UI','Microsoft YaHei',system-ui,sans-serif;
  color:var(--text);font-size:16px;font-synthesis-style:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;background:#fff}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button svg,a svg{pointer-events:none}
button,a,input,summary{outline-offset:3px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand);border-radius:6px}
.icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle}
::selection{background:var(--brand-tint)}
kbd{font-family:Oracle,system-ui,sans-serif;font-size:12px;font-weight:400;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:#fff;color:var(--muted);line-height:18px;padding:0 5px;white-space:nowrap}
.skip-link{position:fixed;left:20px;top:-60px;background:var(--heavy);color:#fff;z-index:200;padding:10px 16px;border-radius:8px;font-size:14px}
.skip-link:focus{top:10px}

/* Header */
.header{height:var(--header);border-bottom:1px solid var(--line);position:sticky;top:0;background:rgb(255 255 255 / .92);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);z-index:50}
.header-inner{max-width:1720px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;height:100%;gap:20px}
.brand-wrap{display:flex;align-items:center;gap:12px;white-space:nowrap}
.brand{display:flex;align-items:center}
.brand img{height:22px;width:auto;display:block}
.brand-separator{height:18px;width:1px;background:var(--line)}
.brand-docs{font-size:15px;font-weight:500;color:var(--heavy)}
.version{font-size:12px;line-height:20px;padding:0 7px;background:var(--soft);color:var(--muted);border-radius:6px;font-weight:500}
.header-actions{display:flex;align-items:center;gap:22px}
.language-label,.desktop-link{font-size:14px;color:var(--muted)}
.desktop-link:hover{color:var(--heavy)}
.open-flowith{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;height:36px;border-radius:10px;background:var(--heavy);color:#fff;font-size:14px;font-weight:500;white-space:nowrap;transition:background .15s}
.open-flowith:hover{background:#2D3139}
.open-flowith .icon{width:14px;height:14px;opacity:.75}
.icon-button{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--text)}
.icon-button:hover{background:var(--soft)}
.mobile-menu,.mobile-search{display:none}
.reading-progress{height:2px;position:absolute;bottom:-1px;left:0;width:0;background:var(--brand);transition:width .08s linear}

/* Shell + sidebar */
.docs-shell{max-width:1720px;margin:0 auto;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr) var(--toc);align-items:start}
.sidebar{position:sticky;top:var(--header);height:calc(100dvh - var(--header));overflow-y:auto;background:var(--side);border-right:1px solid var(--line-soft);padding:24px 16px 20px;scrollbar-width:thin;scrollbar-color:transparent transparent}
.sidebar:hover{scrollbar-color:var(--line) transparent}
.sidebar-caption{font-size:12px;font-weight:500;color:var(--caption);letter-spacing:.06em;padding:0 10px 12px}
.search-trigger{display:flex;width:100%;align-items:center;gap:10px;padding:0 12px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--caption);text-align:left;transition:border-color .15s,box-shadow .15s}
.search-trigger:hover{border-color:#C6CAD2;box-shadow:var(--shadow-toolbar)}
.search-trigger>.icon{width:16px;height:16px;color:var(--caption)}
.search-trigger>span{flex:1}
.search-key{font-size:12px;line-height:18px}
.docs-nav{margin-top:22px}
.nav-group{margin-bottom:18px}
.group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:12px;color:var(--caption);font-weight:500;padding:4px 10px;margin:0 0 4px;letter-spacing:.02em}
.group-toggle:hover{color:var(--text)}
.group-toggle>.icon{width:12px;height:12px;transform:rotate(90deg);transition:transform .15s;opacity:.7}
.group-toggle[aria-expanded=false]>.icon{transform:rotate(0deg)}
.nav-items[hidden]{display:none}
.nav-item{display:block;padding:7px 10px;font-size:14px;line-height:22px;color:var(--text-2);border-radius:8px;margin:1px 0;transition:color .13s,background .13s}
.nav-item:hover{background:rgb(0 0 0 / .04);color:var(--heavy)}
.nav-item.active{color:var(--heavy);background:#fff;font-weight:500;box-shadow:0 1px 2px rgb(23 25 29 / .06),0 0 0 1px var(--line-soft)}
.sidebar-bottom{margin-top:28px;border-top:1px solid var(--line);padding:16px 10px 4px;color:var(--caption);font-size:12px}
.sidebar-bottom>a{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text-2);margin-bottom:12px}
.sidebar-bottom>a>.icon{width:16px;height:16px}
.sidebar-bottom>a>.icon:last-child{width:12px;height:12px;margin-left:auto;opacity:.6}
.sidebar-bottom>a:hover{color:var(--heavy)}

/* Article */
.main{min-width:0;outline:none}
.main:focus,.main:focus-visible{outline:none}
.article-wrap{width:100%;max-width:872px;margin:0 auto;padding:48px 56px 48px}
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--caption);margin-bottom:24px;line-height:20px}
.breadcrumb>a:hover{color:var(--heavy)}
.breadcrumb>.icon{width:12px;height:12px;color:var(--faint)}
.eyebrow{font-size:13px;letter-spacing:.08em;color:var(--brand);font-weight:500;margin:0 0 14px}
.article-header h1{font-size:40px;line-height:1.3;font-weight:600;letter-spacing:-.02em;margin:0 0 16px;color:var(--heavy)}
:lang(zh) .article-header h1{letter-spacing:0}
body[data-page=""] .article-header h1{font-size:46px;line-height:1.2}
.description{font-size:18px;line-height:1.75;color:var(--muted);margin:0;max-width:700px}
.article-meta{display:flex;align-items:center;gap:8px;color:var(--caption);font-size:13px;margin-top:24px;padding-bottom:24px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.meta-dot{padding:0 2px;color:var(--faint)}
.copy-link{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--caption);padding:2px 0 2px 9px;margin-left:auto}
.copy-link .icon{width:14px;height:14px}
.copy-link:hover{color:var(--heavy)}
.article-content{padding-top:8px;color:var(--text);font-size:16px;line-height:1.85;overflow-wrap:anywhere}
.article-content p{margin:16px 0}
.article-content strong{font-weight:600;color:var(--heavy)}
.article-content h2,.article-content h3{position:relative;color:var(--heavy);font-weight:600;line-height:1.45;scroll-margin-top:96px}
.article-content h2{font-size:24px;margin:48px 0 12px;letter-spacing:-.01em}
.article-content h3{font-size:19px;margin:32px 0 8px}
:lang(zh) .article-content h2,:lang(zh) .article-content h3{letter-spacing:0}
.heading-anchor{position:absolute;left:-22px;top:1px;opacity:0;font-size:18px;font-weight:400;color:var(--faint);transition:opacity .15s}
.heading-anchor:hover{color:var(--brand)}
.article-content h2:hover .heading-anchor,.article-content h3:hover .heading-anchor,.heading-anchor:focus-visible{opacity:1}
.article-content ul,.article-content ol{margin:16px 0;padding-left:24px}
.article-content li{padding-left:4px;margin:8px 0}
.article-content li::marker{color:var(--faint)}
.article-content .steps{counter-reset:step;list-style:none;padding-left:0}
.article-content .steps li{counter-increment:step;position:relative;padding-left:40px;margin:14px 0;min-height:28px}
.article-content .steps li::before{content:counter(step);position:absolute;left:0;top:2px;width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--heavy);font-size:13px;font-weight:600;line-height:26px;text-align:center;font-family:Oracle,system-ui,sans-serif}
.article-content a:not(.topic-card):not(.start-card):not(.heading-anchor):not(.shot-open){color:var(--brand);text-decoration:underline;text-decoration-color:rgb(0 123 153 / .3);text-underline-offset:3px}
.article-content a:not(.topic-card):not(.start-card):not(.heading-anchor):not(.shot-open):hover{color:var(--brand-strong);text-decoration-color:currentColor}
.external-link{display:inline-flex;align-items:center;gap:6px}
.external-link>.icon{width:14px;height:14px}

/* Tables */
.table-scroll{margin:24px 0;overflow:auto;border:1px solid var(--line);border-radius:12px;scrollbar-width:thin}
table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.7;text-align:left}
thead{background:var(--side)}
th{font-weight:600;color:var(--heavy);white-space:nowrap}
td,th{padding:12px 16px;vertical-align:top;border-bottom:1px solid var(--line-soft)}
th+th,td+td{border-left:1px solid var(--line-soft)}
tr:last-child td{border-bottom:0}
td:first-child{color:var(--heavy);font-weight:500;min-width:96px}

/* Prompt, notes, related */
.prompt{margin:24px 0;background:var(--side);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.prompt figcaption{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted);gap:12px;background:#fff}
.prompt figcaption>span{display:flex;gap:8px;align-items:center;font-weight:500}
.prompt figcaption .icon{width:15px;height:15px;color:var(--brand)}
.copy-prompt{display:flex;align-items:center;gap:6px;font-size:13px;line-height:24px;padding:0 10px;border-radius:7px;color:var(--text-2);border:1px solid var(--line);background:#fff}
.copy-prompt:hover{color:var(--heavy);border-color:#C6CAD2}
.copy-prompt .icon{width:13px;height:13px;color:inherit}
.prompt blockquote{margin:0;padding:16px 18px 18px;font-size:15px;line-height:1.85;color:var(--text);font-style:normal;white-space:pre-wrap}
.note{display:flex;align-items:flex-start;gap:12px;background:var(--brand-soft);border:1px solid #BFEFFB;border-radius:12px;padding:16px 18px;margin:24px 0}
.note>span{color:var(--brand);line-height:1.4;margin-top:2px}
.note>span>.icon{width:18px;height:18px}
.note strong{font-size:15px;color:var(--brand-strong)}
.note p{font-size:15px;line-height:1.8;color:#1E4955;margin:4px 0 0}
.related{display:flex;flex-direction:column;gap:8px;margin:24px 0}
.related>a{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;font-size:15px;color:var(--heavy)!important;text-decoration:none!important;transition:border-color .15s,box-shadow .15s}
.related>a:hover{border-color:#C6CAD2;box-shadow:var(--shadow-float)}
.related>a>.icon{width:18px;height:18px;color:var(--muted)}
.related>a>.icon:last-child{margin-left:auto;width:16px;height:16px}

/* Screenshots */
.shot{margin:28px 0;padding:0}
.shot-open{display:block;width:100%;padding:10px;background:var(--canvas);border:1px solid var(--line);border-radius:14px;cursor:zoom-in;transition:border-color .15s,box-shadow .15s}
.shot-open:hover{border-color:#C6CAD2;box-shadow:var(--shadow-float)}
.shot-open img{display:block;width:100%;height:auto;border-radius:8px;background:#fff;box-shadow:0 0 0 1px rgb(23 25 29 / .06),0 2px 10px rgb(45 49 57 / .07)}
.shot figcaption{font-size:13px;line-height:1.7;color:var(--caption);margin:10px 4px 0;text-align:center}
.shot.normal{max-width:620px;margin-left:auto;margin-right:auto}
.shot.hero{margin-top:32px;margin-bottom:8px}
.shot.hero .shot-open{padding:12px;border-radius:18px}
.shot.hero .shot-open img{border-radius:10px}
.lightbox{padding:0;border:0;background:transparent;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;display:none;cursor:zoom-out}
.lightbox[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.lightbox::backdrop{background:rgb(11 12 14 / .78);backdrop-filter:blur(4px)}
.lightbox img{max-width:min(96vw,1800px);max-height:calc(100dvh - 90px);width:auto;height:auto;border-radius:10px;box-shadow:0 20px 80px rgb(0 0 0 / .35);background:#fff}
.lightbox p{margin:0;max-width:min(90vw,900px);color:#E2E4E8;font-size:14px;line-height:1.6;text-align:center}

/* Home cards */
.start-card{display:flex;align-items:center;gap:16px;margin:28px 0 36px;padding:18px 20px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;transition:border-color .16s,box-shadow .16s}
.start-card:hover{border-color:#C6CAD2;box-shadow:var(--shadow-float)}
.start-card-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--brand-soft);color:var(--brand);flex-shrink:0}
.start-card-icon>.icon{width:22px;height:22px}
.start-card>div:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1}
.start-card strong{font-size:17px;font-weight:600;color:var(--heavy)}
.start-card span{font-size:14px;color:var(--muted);line-height:1.7}
.start-card>.icon{width:20px;height:20px;color:var(--caption);transition:transform .16s}
.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 32px}
.topic-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:20px 20px 22px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .16s,box-shadow .16s}
.topic-card:hover{border-color:#C6CAD2;box-shadow:var(--shadow-float)}
.topic-card .card-icon{display:flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:10px;background:var(--soft);color:var(--heavy);margin-bottom:14px}
.card-icon>.icon{width:19px;height:19px}
.topic-card>strong{font-size:16px;font-weight:600;color:var(--heavy);margin-bottom:6px}
.topic-card>span:not(.card-icon):not(.card-arrow){font-size:14px;color:var(--muted);line-height:1.7;padding-right:8px}
.card-arrow{position:absolute;right:18px;top:24px;color:var(--faint);transition:transform .16s,color .16s}
.topic-card:hover .card-arrow{color:var(--heavy);transform:translateX(2px)}
.card-arrow>.icon{width:16px;height:16px}
.workflow{margin:24px 0}
.workflow>div{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;background:var(--side);padding:22px 0 18px}
.workflow section{position:relative;display:flex;align-items:center;flex-direction:column;padding:12px 10px 6px;border-right:1px solid var(--line);gap:6px;text-align:center}
.workflow section:last-child{border:0}
.workflow section>.icon{width:24px;height:24px;color:var(--brand);margin-bottom:6px}
.workflow strong{font-size:15px;font-weight:600;color:var(--heavy)}
.workflow small{font-size:13px;color:var(--muted);line-height:1.6}
.flow-num{font-size:12px;color:var(--caption);position:absolute;left:14px;top:-10px;font-family:Oracle,system-ui,sans-serif}
.workflow figcaption{font-size:13px;color:var(--caption);text-align:center;margin-top:10px}

/* TOC + end of article */
.toc{position:sticky;top:var(--header);max-height:calc(100dvh - var(--header));overflow-y:auto;padding:56px 24px 36px 0;font-size:13px}
.toc-label{color:var(--heavy);font-size:13px;font-weight:600;margin-bottom:12px;padding-left:14px}
.toc-nav{border-left:1px solid var(--line)}
.toc-nav>a{display:block;color:var(--muted);line-height:1.6;padding:6px 0 6px 14px;margin:1px 0;position:relative}
.toc-nav>a:hover{color:var(--heavy)}
.toc-nav>a.active{color:var(--heavy);font-weight:500}
.toc-nav>a.active:before{content:'';position:absolute;left:-1px;top:6px;bottom:6px;width:2px;border-radius:2px;background:var(--brand)}
.toc-help{display:flex;align-items:center;gap:8px;margin:28px 0 0 14px;color:var(--muted);font-size:13px}
.toc-help>.icon{width:15px;height:15px}
.toc-help:hover{color:var(--heavy)}
.mobile-toc{display:none}
.article-end{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:56px;padding-top:18px;color:var(--caption);font-size:13px}
.back-top{color:var(--muted)}
.back-top:hover{color:var(--heavy)}
.pagination{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 0}
.pagination>a{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;transition:border-color .15s,box-shadow .15s;min-height:80px}
.pagination>a:hover{border-color:#C6CAD2;box-shadow:var(--shadow-float)}
.pagination small{font-size:13px;color:var(--caption)}
.pagination strong{font-size:15px;font-weight:600;line-height:1.5;color:var(--heavy)}
.pagination .next{text-align:right;align-items:flex-end}
.article-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;margin-top:32px;color:var(--caption);font-size:13px}
.article-footer p{margin:0}
.article-footer a{display:inline-flex;align-items:center;gap:4px;color:var(--text-2);margin-left:4px}
.article-footer a:hover{color:var(--heavy)}
.article-footer .icon{width:12px;height:12px}

/* Search + menu dialogs */
.search-dialog{padding:0;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 80px rgb(11 12 14 / .18);width:640px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);margin:12vh auto auto;color:var(--text);background:#fff;overflow:hidden}
.search-dialog::backdrop,.menu-dialog::backdrop{background:rgb(11 12 14 / .32);backdrop-filter:blur(3px)}
.search-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.search-head>.icon{color:var(--caption);width:20px;height:20px}
.search-head>input{border:0;outline:none;min-width:0;flex:1;background:transparent;color:var(--heavy);font-size:17px;line-height:28px;padding:0}
.search-head>input:focus-visible{outline:none}
.search-head>input::-webkit-search-cancel-button{-webkit-appearance:none}
.search-head>input::placeholder{color:var(--faint)}
.dialog-close{padding:3px}
.search-results{padding:8px;overflow-y:auto;max-height:min(57vh,460px);min-height:220px}
.search-result{display:block;position:relative;padding:12px 14px;border-radius:10px;margin:2px 0}
.search-result:hover,.search-result.selected{background:var(--soft)}
.search-result strong{display:block;font-size:15px;font-weight:600;color:var(--heavy);line-height:1.6}
.search-result small{font-size:12px;color:var(--caption)}
.search-result p{font-size:13px;line-height:1.75;color:var(--muted);margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.search-result mark{background:var(--brand-tint);color:var(--brand-strong);border-radius:3px;padding:0 1px}
.search-empty{padding:34px 20px;text-align:center}
.search-empty strong{display:block;font-size:16px;font-weight:600;margin:8px 0;color:var(--heavy)}
.search-empty p{font-size:14px;color:var(--muted);line-height:1.8;margin:0}
.search-hints{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.search-hints button{font-size:13px;border:1px solid var(--line);border-radius:999px;padding:5px 14px;color:var(--text-2);background:#fff}
.search-hints button:hover{border-color:#C6CAD2;color:var(--heavy)}
.search-caption{font-size:12px;color:var(--caption);padding:8px 14px 4px}
.search-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--caption);background:var(--side)}
.search-footer kbd{margin:0 3px;font-size:12px}
.menu-dialog{border:0;width:min(340px,90vw);height:100dvh;max-height:none;max-width:none;margin:0;padding:0 16px 30px;border-radius:0;overflow:auto;background:var(--side);color:var(--text)}
.menu-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--side);padding:16px 0 14px;font-size:16px;font-weight:600;color:var(--heavy);z-index:1}
.menu-dialog .search-trigger{margin-top:4px}
.menu-dialog .docs-nav{margin-top:22px}
.menu-help{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin:12px 10px}
.menu-help>.icon{width:13px;height:13px}
.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,12px);color:#fff;background:var(--ink);border-radius:10px;padding:11px 18px;font-size:14px;box-shadow:var(--shadow-float);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:100;white-space:nowrap}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.not-found{max-width:650px;margin:20vh auto;padding:20px;font-family:Oracle,'Flowith CJK','PingFang SC',system-ui,sans-serif}
.not-found>span{color:var(--caption);font-size:14px}
.not-found h1{font-weight:600;font-size:34px;color:var(--heavy)}
.not-found p{color:var(--muted);font-size:16px;line-height:1.8;margin-bottom:30px}

/* FAQ: one answer at a time, opening and closing animated (assets/app.js) */
.faq{margin:28px 0 8px}
.faq-tools{margin:0 2px 12px;font-size:14px;color:var(--caption)}
.faq-list{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.faq-item+.faq-item{border-top:1px solid var(--line-soft)}
.faq-item>summary{display:flex;align-items:center;gap:14px;padding:18px 20px;cursor:pointer;list-style:none;transition:background-color .2s ease;-webkit-tap-highlight-color:transparent}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary:hover{background:var(--side)}
.faq-item>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:14px}
.faq-num{flex:none;width:28px;height:28px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:600;display:grid;place-items:center;font-variant-numeric:tabular-nums;transition:background-color .2s ease,color .2s ease}
.article-content .faq-item>summary h2{flex:1;margin:0;font-size:17px;line-height:1.55;font-weight:600;letter-spacing:0;color:var(--ink);scroll-margin-top:110px;transition:color .2s ease}
.faq-item>summary>.icon{flex:none;width:16px;height:16px;color:var(--faint);transition:transform .28s cubic-bezier(.22,.8,.24,1),color .2s ease}
.faq-item[open]:not(.is-closing)>summary{background:var(--side)}
.faq-item[open]:not(.is-closing)>summary>.icon{transform:rotate(90deg);color:var(--brand)}
.faq-item[open]:not(.is-closing)>summary .faq-num{background:var(--brand-soft);color:var(--brand)}
.faq-a{overflow:hidden;background:var(--side)}
.faq-a-inner{padding:2px 20px 22px 62px}
.faq-a-inner>:first-child{margin-top:10px}
.faq-a-inner>:last-child{margin-bottom:0}
.faq-a-inner p{color:var(--text-2)}
.faq-a-inner .shot{margin:18px 0 4px}
@media(prefers-reduced-motion:reduce){.faq-item>summary,.faq-num,.faq-item>summary>.icon,.article-content .faq-item>summary h2{transition:none}}
@media(max-width:540px){
  .faq-item>summary{padding:16px 14px;gap:12px}
  .faq-num{width:24px;height:24px;font-size:11px}
  .article-content .faq-item>summary h2{font-size:16px}
  .faq-a-inner{padding:0 14px 18px 50px}
}
@media print{.faq-tools{display:none}.faq-list{border:0}.faq-item>summary>.icon{display:none}.faq-a{background:none}.faq-a-inner{padding-left:0}}

/* Every screenshot stays inside the text column, aligned with the copy */
@media(min-width:1550px){.article-wrap{max-width:900px;padding-left:70px;padding-right:70px}.toc{padding-top:60px}}
@media(max-width:1180px){
  .docs-shell{grid-template-columns:256px minmax(0,1fr)}.toc{display:none}
  .article-wrap{padding-left:44px;padding-right:44px;max-width:860px}
  .mobile-toc{display:block;margin:0 0 24px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted)}
  .mobile-toc summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:500}
  .mobile-toc summary::-webkit-details-marker{display:none}
  .mobile-toc summary>.icon{width:12px;height:12px;transform:rotate(90deg)}
  .mobile-toc[open] summary>.icon{transform:rotate(-90deg)}
  .mobile-toc-nav{display:flex;flex-direction:column;gap:10px;padding:14px 0 4px}
  .mobile-toc-nav>a:hover{color:var(--heavy)}
  .article-content{padding-top:0}
}
@media(max-width:900px){
  :root{--header:56px;--bleed:0px}
  .header-inner{padding:0 16px;gap:10px}
  .brand-wrap{gap:10px}.brand img{height:20px}.brand-docs{font-size:14px}
  .header-actions{gap:4px}
  .desktop-link,.language-label{display:none}
  .mobile-menu,.mobile-search{display:flex}
  .open-flowith{font-size:13px;height:32px;padding:0 12px;border-radius:9px;gap:6px;margin:0 4px}
  .open-flowith>.icon{width:12px;height:12px}
  .docs-shell{display:block}.sidebar{display:none}
  .article-wrap{max-width:780px;padding:32px 28px 36px}
  .article-header h1,body[data-page=""] .article-header h1{font-size:32px}
  .description{font-size:16px}
  .article-content{font-size:15px;line-height:1.85}
  .article-content h2{font-size:21px;margin-top:38px}
  .article-content h3{font-size:17px}
  .prompt blockquote,.note p,.note strong,.related>a{font-size:14px}
  .article-end{margin-top:40px}.article-footer{margin-top:26px}
}
@media(max-width:540px){
  .brand-separator{display:none}
  .brand-docs{font-size:13px}
  .version{font-size:12px;padding:0 5px}
  .open-flowith{padding:0 10px;font-size:12px}
  .icon-button{width:34px;height:34px}
  .article-wrap{padding:24px 18px 28px}
  .breadcrumb{font-size:12px;margin-bottom:18px}
  .eyebrow{font-size:12px}
  .article-header h1,body[data-page=""] .article-header h1{font-size:28px;line-height:1.35}
  .description{font-size:15px;line-height:1.8}
  .article-meta{font-size:12px;gap:6px;padding-bottom:18px}
  .copy-link{font-size:12px}
  .heading-anchor{display:none}
  .topic-grid{grid-template-columns:1fr}
  .topic-card{padding:16px 16px 18px}
  .start-card{padding:16px;gap:12px}
  .start-card strong{font-size:16px}.start-card span{font-size:13px}
  .start-card-icon{width:38px;height:38px}
  .workflow>div{grid-template-columns:1fr 1fr;row-gap:28px;padding:24px 0 14px}
  .workflow section:nth-child(2){border-right:0}
  .prompt blockquote{padding:14px}
  .prompt figcaption{padding:10px 12px}
  table{font-size:13px}
  td,th{padding:10px 12px}
  th{white-space:normal}
  td:first-child{min-width:72px}
  .shot{margin:22px 0}
  .shot-open{padding:6px;border-radius:12px}
  .shot-open img{border-radius:6px}
  .shot figcaption{font-size:12px}
  .pagination{gap:8px}
  .pagination>a{padding:14px 12px;min-height:84px}
  .pagination strong{font-size:14px}
  .article-footer{flex-direction:column;align-items:flex-start;gap:10px;font-size:12px}
  .search-dialog{margin:7vh auto auto;border-radius:14px}
  .search-head{padding:14px;gap:10px}
  .search-head>input{font-size:16px}
  .search-footer{font-size:12px;padding:10px 12px}
  .search-results{max-height:61vh}
  .search-result{padding:12px}
  .toast{bottom:22px;font-size:13px;max-width:calc(100vw - 24px);white-space:normal;text-align:center}
  .note{padding:14px}
  .not-found{padding:25px}
}
@media print{
  .header,.sidebar,.toc,.mobile-toc,.copy-link,.copy-prompt,.pagination,.article-footer,.article-end,.lightbox{display:none!important}
  .docs-shell{display:block}.article-wrap{max-width:none;padding:0}
  .article-content{font-size:11pt;color:#111}
  h1,h2,h3{break-after:avoid}table,figure{break-inside:avoid}
  .article-meta{border:0}.heading-anchor{display:none}
  .shot-open{border:0;padding:0;background:none}
}

/* Merged migration guide (2026-11-18): the old-user button on the home page, and the rich blocks of
   「从 flowith.io 迁移」: status pills and legend, collapsed reference tables, FAQ inside the article, feature cards. */
.pill{display:inline-block;font-size:12px;line-height:20px;font-weight:500;padding:0 8px;border-radius:999px;margin:0 8px 0 0;white-space:nowrap;vertical-align:1px}
.pill.ok{background:var(--brand-soft);color:var(--brand-strong)}
.pill.moved{background:var(--soft);color:var(--text-2);box-shadow:inset 0 0 0 1px var(--line)}
.pill.missing{background:#FFF3E8;color:#8A4B12}
.legend{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;color:var(--muted)}
.legend>span{display:inline-flex;align-items:center}
.rich .table-scroll td:first-child{white-space:normal}
.rich .table-scroll.compact td{padding:10px 14px}
.article-content .faq-item>summary h3{flex:1;margin:0;font-size:17px;line-height:1.55;font-weight:600;letter-spacing:0;color:var(--ink);scroll-margin-top:110px}
.feature-card:hover{border-color:var(--line);box-shadow:none}
.article-content .topic-card>span.card-where{margin-top:12px;padding-top:10px;border-top:1px dashed var(--line);font-size:13px;color:var(--caption);line-height:1.7;width:100%}
.card-num{font-family:Oracle,system-ui,sans-serif;font-size:13px;font-weight:500;color:var(--brand);margin-right:8px}
.rich .topic-card strong{color:var(--heavy)}
.fold{margin:20px 0 8px}
.fold .faq-item>summary{padding:16px 20px}
.fold-count{flex:none;font-size:13px;color:var(--caption);font-variant-numeric:tabular-nums}
.fold .faq-a-inner{padding:2px 16px 18px}
.fold .faq-a-inner>.table-scroll{margin:6px 0 0;background:#fff}
@media(max-width:540px){.fold .faq-a-inner{padding:0 10px 14px}}

/* Home page: one standalone black button for flowith.io users → 「从 flowith.io 迁移」 at the bottom of the list. */
.article-header a.old-user-button{display:inline-flex;align-items:center;gap:10px;margin:20px 0 0;padding:10px 14px 10px 18px;border-radius:999px;background:var(--heavy);color:#fff;text-decoration:none;font-size:14px;line-height:20px;box-shadow:0 4px 20px rgb(45 49 57 / .12);transition:background .15s,transform .15s}
.article-header a.old-user-button:hover{background:#22252B;transform:translateY(-1px)}
.article-header a.old-user-button span{color:#A9AFBB}
.article-header a.old-user-button strong{font-weight:600;color:#fff}
.article-header a.old-user-button .icon{width:16px;height:16px;color:#fff}
@media(max-width:540px){.article-header a.old-user-button{font-size:13px;padding:9px 12px 9px 14px;gap:8px}}

/* Light start card (2026-11-18): same surface as the topic cards; the arrow nudges on hover. */
.start-card:hover>.icon{transform:translateX(2px);color:var(--heavy)}
/* Sidebar group header: name = link to the group's first article; chevron = fold. */
.group-head{display:flex;align-items:center;gap:2px;margin:0 0 4px}
.sidebar a.group-link,.menu-dialog a.group-link,a.group-link{flex:1;min-width:0;display:block;font-size:12px;line-height:20px;color:var(--caption);font-weight:500;padding:4px 10px;letter-spacing:.02em;border-radius:8px;text-decoration:none;transition:color .15s,background .15s}
a.group-link:hover{color:var(--text);background:var(--soft)}
.group-head .group-toggle{flex:none;width:28px;height:28px;justify-content:center;padding:0;margin:0;border-radius:8px;color:var(--caption)}
.group-head .group-toggle:hover{background:var(--soft);color:var(--text)}

/* Sidebar hierarchy (2026-11-18): group names are ink 13px semibold headers; articles sit one step in, on a thin guide
   line, in lighter grey; the current article marks the line in ink. Groups are spaced further apart. */
.nav-group{margin-bottom:22px}
.nav-group:last-child{margin-bottom:8px}
.sidebar a.group-link,.menu-dialog a.group-link,a.group-link{font-size:13px;line-height:20px;font-weight:600;color:var(--ink);letter-spacing:0;padding:5px 10px}
a.group-link:hover{color:var(--heavy);background:rgb(0 0 0 / .04)}
.group-head{margin:0 0 2px}
.nav-items{margin:0 0 0 14px;padding:2px 0 2px 8px;border-left:1px solid var(--line)}
.nav-item{position:relative;padding:6px 10px;font-size:13.5px;line-height:20px;color:var(--muted)}
.nav-item:hover{color:var(--heavy);background:rgb(0 0 0 / .04)}
.nav-item.active{color:var(--heavy);font-weight:500}
.nav-item.active::before{content:"";position:absolute;left:-9px;top:7px;bottom:7px;width:2px;border-radius:2px;background:var(--heavy)}

/* 中文 / EN switch in the header (replaces the static 「简体中文」 label). */
.lang-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--line-soft)}
.header-actions .lang-switch a{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:13px;line-height:20px;color:var(--muted);text-decoration:none;transition:color .15s,background .15s}
.header-actions .lang-switch a:hover{color:var(--heavy)}
.header-actions .lang-switch a[aria-current]{background:#fff;color:var(--heavy);font-weight:500;box-shadow:0 1px 2px rgb(23 25 29 / .08)}
@media(max-width:540px){.header-actions .lang-switch a{height:24px;padding:0 8px;font-size:12px}}
.lang-switch{flex:none}
.header-actions .lang-switch a{white-space:nowrap;flex:none}
