/* MyGridMaker — 画布工作台视觉：近黑底、青色强调、等宽界面信息 + 无衬线长文、衬线大标题，背景是固定的一层淡网格 */
/* 首屏属性条（2026-11-23）：工具下方一行可扫读的属性标签，方便 AI 摘要整句摘走 */
.attr-strip{display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch;max-width:none;width:100%;margin:var(--space-3) 0 0;padding:var(--space-3) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-family:var(--mono);font-size:12.5px;line-height:1.6;letter-spacing:.08em;color:var(--text);text-align:center}
.attr-strip span{display:flex;align-items:center;justify-content:center;padding:6px 0;white-space:nowrap}
.attr-strip span+span{border-left:1px solid var(--line)}
.attr-note{max-width:none;margin:0 0 var(--space-5);padding-top:var(--space-3);font-size:13.5px;line-height:1.65;color:var(--muted);text-align:center}
/* 编号步骤块（2026-11-23）：大号淡色序号 + 竖排、细线分隔，不做卡片 */
.prose ol,.article-body ol{counter-reset:prose-step;list-style:none;padding-left:0;display:grid;gap:var(--space-3);margin:var(--space-5) 0 var(--space-6)}
.prose ol>li,.article-body ol>li{counter-increment:prose-step;position:relative;margin:0;padding-left:58px;padding-bottom:var(--space-3);border-bottom:1px solid var(--line)}
.prose ol>li:last-child,.article-body ol>li:last-child{border-bottom:0;padding-bottom:0}
.prose ol>li::before,.article-body ol>li::before{content:counter(prose-step,decimal-leading-zero);position:absolute;left:0;top:-2px;font-family:var(--serif);font-size:26px;line-height:1.05;color:rgba(34,211,238,.5);font-variant-numeric:tabular-nums}
@media (max-width:640px){.prose ol>li,.article-body ol>li{padding-left:44px}.prose ol>li::before,.article-body ol>li::before{font-size:22px}}
@media (max-width:640px){.attr-strip{grid-template-columns:1fr 1fr;column-gap:var(--space-3);font-size:12px;letter-spacing:.045em;text-align:left}.attr-strip span{padding:5px 0;justify-content:flex-start}.attr-strip span+span{border-left:0}.attr-strip span:nth-child(even){justify-content:flex-end}}
/* 排版细化（设计审稿后加）：等宽只留给界面元信息，长文换无衬线；手机端 H1 收小；正文段落限宽；表格可横向滞动 */
:root{--sans:system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif}
html body{font-family:var(--sans)}
html body p,html body li,html body .prose,html body .prose p,html body .prose li,html body .lede,html body .dz-sub,html body .foot-about,html body .pl-ex{font-family:var(--sans);line-height:1.72}
html body .eyebrow,html body .tag,html body .num,html body .crumbs,html body th,html body .pl-meta,html body .case-meta,html body .foot-col h4,html body .panel h3,html body .stage-note,html body .ctrl label,html body .toggles label,html body .preset{font-family:var(--mono)}
html body h3{font-family:var(--serif);letter-spacing:-.01em}
html body .steps h3{font-family:var(--sans);font-weight:600;letter-spacing:0}
html .prose{max-width:70ch}
html body .prose p,html body .prose li{max-width:66ch;color:var(--text)}
html body .steps li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:var(--space-4) var(--space-5) var(--space-4) var(--space-4);border-bottom:1px solid var(--line)}
html body .steps li:last-child{border-bottom:1px solid var(--line)}
html body .export .btn:first-child{background:var(--primary);border-color:var(--primary);color:var(--bg)}
html body .export .btn:first-child:hover{background:var(--primary-dim);border-color:var(--primary-dim);color:var(--bg)}
html body .dropzone{border-color:var(--line-strong)}
@media (max-width:760px){
  html body h1{font-size:clamp(27px,7.8vw,34px);line-height:1.22;letter-spacing:-.01em}
  html body .hero{padding-top:var(--space-4)}
  html body .lede{font-size:var(--fs-base)}
  html body .prose table{display:block;overflow-x:auto;white-space:nowrap}
  html body .steps li{grid-template-columns:44px 1fr;gap:var(--space-3)}
}
html body .hero-tags{display:flex;flex-wrap:wrap;gap:8px}
html body .export .btn:first-child{min-height:44px;font-weight:600}
html body .prose table{width:100%;border-collapse:collapse;margin:24px 0}
html body .prose th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--primary);border-bottom:1px solid var(--line-strong);padding:10px 12px;text-align:left}
html body .prose td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
html body .prose p{line-height:1.75}
html body .nav a:hover{color:var(--primary)}
@media (max-width:640px){
  html body h1{font-size:30px;line-height:1.16;letter-spacing:-.02em}
  html body .tag{padding:5px 10px;font-size:12px}
  html body .hero-tags{gap:6px}
  html body .prose th,html body .prose td{padding:9px 10px}
}
:root{
  --bg:#0a0b0e; --surface:#111318; --elevated:#181b23; --subtle:#20242e;
  --text:#e8e9ec; --muted:#8a8f9c; --faint:#6a6f7c;
  --primary:#22d3ee; --primary-dim:#0ea5bc; --primary-glow:rgba(34,211,238,.12);
  --line:#252a33; --line-strong:#353a45;
  --radius:10px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;
  --fs-xs:12px; --fs-sm:13px; --fs-base:16px; --fs-md:18px; --fs-lg:22px; --fs-xl:30px; --fs-2xl:40px; --fs-3xl:52px;
  --mono:'JetBrains Mono',SFMono-Regular,Menlo,Consolas,monospace;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0; min-height:100vh; background:var(--bg); color:var(--text);
  font-family:var(--mono); font-size:var(--fs-base); line-height:1.65;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
/* 记忆点：整站一层固定的淡青色制图网格 + 顶部一点辉光，只此一处装饰 */
body::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:linear-gradient(rgba(34,211,238,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(34,211,238,.045) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(ellipse 100% 60% at 50% 0%,#000 0%,transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 100% 60% at 50% 0%,#000 0%,transparent 78%);
}
body::after{
  content:''; position:fixed; top:-320px; left:50%; width:900px; height:600px; transform:translateX(-50%);
  background:radial-gradient(circle,rgba(34,211,238,.10),transparent 65%); z-index:0; pointer-events:none;
}
h1,h2,h3,h4{font-family:var(--serif); font-weight:600; line-height:1.15; letter-spacing:-.015em; text-wrap:balance; margin:0 0 var(--space-3)}
h1{font-size:clamp(30px,5vw,var(--fs-3xl))}
h2{font-size:clamp(23px,3vw,var(--fs-xl)); margin-top:var(--space-7)}
h3{font-size:var(--fs-md); font-family:var(--mono); font-weight:600; letter-spacing:0; margin-top:var(--space-5)}
p{margin:0 0 var(--space-4); text-wrap:pretty; max-width:68ch; color:#cfd3db}
a{color:var(--primary); text-decoration:none}
a:hover{color:#67e8f9}
img{max-width:100%; height:auto; display:block}
ul,ol{margin:0 0 var(--space-4); padding-left:20px; color:#cfd3db}
li{margin-bottom:var(--space-2)}
strong{color:var(--text); font-weight:600}
code,kbd{font-family:var(--mono); font-size:.9em; background:var(--subtle); padding:1px 5px; border-radius:4px; color:#a5f3fc}
blockquote{margin:0 0 var(--space-5); padding:var(--space-3) var(--space-5); border-left:2px solid var(--primary); background:var(--surface); color:var(--muted)}
hr{border:0; border-top:1px solid var(--line); margin:var(--space-7) 0}
:focus-visible{outline:2px solid var(--primary); outline-offset:2px; border-radius:4px}
::selection{background:rgba(34,211,238,.25); color:#fff}
@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important; scroll-behavior:auto!important}}

/* —— 外壳：页头 / 页脚 / 容器 —— */
.wrap{width:100%; max-width:1140px; margin:0 auto; padding-inline:20px; position:relative; z-index:1}
.site-header{position:sticky; top:0; z-index:20; background:rgba(10,11,14,.86); backdrop-filter:blur(8px); border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between; gap:var(--space-5); min-height:62px}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--serif); font-size:var(--fs-md); font-weight:600; color:var(--text); letter-spacing:-.01em}
.brand:hover{color:var(--text)}
.brand svg{flex:none; color:var(--primary)}
.nav{display:flex; align-items:center; gap:var(--space-1)}
.nav a{display:inline-block; padding:8px 12px; border-radius:6px; font-size:var(--fs-sm); color:var(--muted); transition:color .18s ease, background .18s ease}
.nav a:hover{color:var(--text); background:var(--surface)}
.nav a.on{color:var(--primary); background:var(--primary-glow)}
.nav-toggle{display:none; background:transparent; border:1px solid var(--line-strong); color:var(--text); border-radius:8px; padding:8px 12px; font:inherit; font-size:var(--fs-sm); cursor:pointer}
.site-footer{border-top:1px solid var(--line); margin-top:var(--space-8); padding:var(--space-7) 0 var(--space-6); position:relative; z-index:1}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:var(--space-6)}
.foot-col h4{font-size:var(--fs-xs); font-family:var(--mono); text-transform:uppercase; letter-spacing:.08em; color:var(--primary); margin:0 0 var(--space-3)}
.foot-col a{display:block; font-size:var(--fs-sm); color:var(--muted); padding:3px 0}
.foot-col a:hover{color:var(--text)}
.foot-about{font-size:var(--fs-sm); color:var(--muted); max-width:34ch}
.foot-bottom{display:flex; justify-content:space-between; gap:var(--space-4); flex-wrap:wrap; margin-top:var(--space-6); padding-top:var(--space-4); border-top:1px solid var(--line); font-size:var(--fs-xs); color:var(--faint)}
/* —— 通用件 —— */
.eyebrow{display:inline-block; font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.1em; color:var(--primary); margin-bottom:var(--space-3)}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 22px; border-radius:8px; border:1px solid transparent; font-family:var(--mono); font-size:var(--fs-sm); font-weight:600; cursor:pointer; transition:transform .18s ease, background .18s ease, border-color .18s ease}
.btn-primary{background:var(--primary); color:#04222a}
.btn-primary:hover{background:#5ce1f2; color:#04222a; transform:translateY(-1px)}
.btn-ghost{background:transparent; border-color:var(--line-strong); color:var(--text)}
.btn-ghost:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-1px)}
.btn-sm{min-height:36px; padding:0 14px; font-size:var(--fs-xs)}
.section{padding:var(--space-8) 0 0}
.section-head{max-width:60ch; margin-bottom:var(--space-5)}
.section-head h2{margin-top:0}
.section-head p{color:var(--muted); margin-bottom:0}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius)}
.muted{color:var(--muted)}
.small{font-size:var(--fs-sm)}
.rule{display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-4)}
.rule::before,.rule::after{content:''; flex:1; height:1px; background:linear-gradient(90deg,transparent,var(--line-strong),transparent)}
.rule span{font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.1em; color:var(--primary); white-space:nowrap}
.prose{max-width:74ch}
.prose h2{margin-top:var(--space-6)}
.prose table{width:100%; border-collapse:collapse; font-size:var(--fs-sm); margin:0 0 var(--space-5)}
.prose th,.prose td{text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top}
.prose th{font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.06em; color:var(--primary)}
.prose td{font-variant-numeric:tabular-nums}
.crumbs{font-size:var(--fs-xs); color:var(--faint); padding-top:var(--space-4)}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--primary)}
.crumbs span{opacity:.5; margin:0 6px}

/* —— 工具工作台 —— */
.hero{padding:var(--space-6) 0 0}
.hero h1{margin-bottom:var(--space-3)}
.hero .lede{font-size:var(--fs-md); color:var(--muted); max-width:62ch; margin-bottom:var(--space-4)}
.hero-tags{display:flex; flex-wrap:wrap; gap:var(--space-2); margin-bottom:var(--space-5)}
.tag{font-size:var(--fs-xs); color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:4px 10px; background:var(--surface)}
.workbench{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:var(--space-4); align-items:start}
.stage{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4); min-height:360px; display:flex; flex-direction:column; gap:var(--space-3)}
.dropzone{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--space-3); text-align:center; border:1.5px dashed var(--line-strong); border-radius:8px; padding:var(--space-6) var(--space-4); cursor:pointer; transition:border-color .18s ease, background .18s ease; background:var(--bg)}
.dropzone:hover,.dropzone.is-over{border-color:var(--primary); background:rgba(34,211,238,.05)}
.dropzone .dz-icon{width:44px; height:44px; color:var(--primary)}
.dropzone .dz-title{font-size:var(--fs-sm); color:var(--text); font-weight:600}
.dropzone .dz-sub{font-size:var(--fs-xs); color:var(--faint)}
.canvas-hold{display:none; position:relative; background:var(--bg); border-radius:8px; overflow:hidden; line-height:0}
.canvas-hold.on{display:block}
.canvas-hold canvas{width:100%; height:auto; display:block}
.stage-bar{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-2)}
.seg{display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden}
.seg button{background:transparent; border:0; color:var(--muted); font:inherit; font-size:var(--fs-xs); padding:7px 12px; cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--primary-glow); color:var(--primary)}
.panel{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4)}
.panel h3{margin:0 0 var(--space-4); font-size:var(--fs-xs); text-transform:uppercase; letter-spacing:.1em; color:var(--primary); font-family:var(--mono)}
.presets{display:grid; grid-template-columns:1fr 1fr; gap:var(--space-2); margin-bottom:var(--space-4)}
.preset{background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:8px 6px; color:var(--muted); font:inherit; font-size:12px; text-align:center; cursor:pointer; transition:border-color .18s ease, color .18s ease}
.preset:hover,.preset[aria-pressed="true"]{border-color:var(--primary); color:var(--primary)}
.ctrl{margin-bottom:var(--space-4)}
.ctrl label{display:flex; justify-content:space-between; align-items:baseline; font-size:var(--fs-xs); color:var(--muted); margin-bottom:6px}
.ctrl output{color:var(--text); font-variant-numeric:tabular-nums}
.ctrl input[type=range]{width:100%; accent-color:var(--primary); height:20px}
.ctrl input[type=color]{width:100%; height:34px; padding:2px; background:var(--bg); border:1px solid var(--line); border-radius:6px; cursor:pointer}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:var(--space-3)}
.toggles{display:flex; flex-direction:column; gap:var(--space-2); margin-bottom:var(--space-4)}
.toggles label{display:flex; align-items:center; gap:8px; font-size:var(--fs-xs); color:var(--muted); cursor:pointer}
.toggles input{accent-color:var(--primary); width:15px; height:15px}
.export{display:grid; gap:var(--space-2)}
.export .btn{width:100%}
.stage-note{font-size:var(--fs-xs); color:var(--faint); text-align:center}
/* —— 步骤 / 卡片 / FAQ / 博客 —— */
.steps{list-style:none; padding:0; margin:0; display:grid; gap:var(--space-4); counter-reset:s}
.steps li{display:grid; grid-template-columns:56px 1fr; gap:var(--space-4); align-items:start; padding-bottom:var(--space-4); border-bottom:1px solid var(--line)}
.steps li:last-child{border-bottom:0; padding-bottom:0}
.steps .num{font-family:var(--serif); font-size:26px; color:rgba(34,211,238,.5); line-height:1; font-variant-numeric:tabular-nums}
.steps h3{margin:0 0 6px; font-size:var(--fs-base); font-family:var(--mono); color:var(--text)}
.steps p{margin:0; font-size:var(--fs-sm); color:var(--muted); max-width:62ch}
.grid-cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-4)}
.teaser{display:flex; flex-direction:column; gap:var(--space-2); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4); color:var(--text); transition:border-color .18s ease, transform .18s ease}
.teaser:hover{border-color:var(--primary); transform:translateY(-1px); color:var(--text)}
.teaser .t-label{font-family:var(--serif); font-size:var(--fs-md); color:var(--text)}
.teaser .t-meta{font-size:var(--fs-xs); color:var(--faint)}
.teaser .t-desc{font-size:var(--fs-sm); color:var(--muted); margin:0}
.teaser .t-go{font-size:var(--fs-xs); color:var(--primary); margin-top:auto}
.faq{margin-top:var(--space-6)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer; padding:14px 0; font-size:var(--fs-base); font-weight:600; color:var(--text); list-style:none; display:flex; justify-content:space-between; gap:var(--space-4)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+'; color:var(--primary); font-family:var(--mono)}
.faq details[open] summary::after{content:'−'}
.faq p{margin:0 0 14px; font-size:var(--fs-sm); color:var(--muted); max-width:70ch}
.post-list{list-style:none; padding:0; margin:0; border-top:1px solid var(--line)}
.post-list li{border-bottom:1px solid var(--line)}
.post-list a{display:grid; grid-template-columns:110px 1fr; gap:var(--space-4); padding:var(--space-4) 0; color:var(--text)}
.post-list a:hover .pl-title{color:var(--primary)}
.post-list .pl-meta{font-size:var(--fs-xs); color:var(--faint); padding-top:4px}
.pl-title{display:block; font-family:var(--serif); font-size:var(--fs-md); margin-bottom:4px}
.pl-ex{display:block; font-size:var(--fs-sm); color:var(--muted); max-width:70ch}
.case{display:grid; grid-template-columns:1fr; gap:var(--space-3); border-top:1px solid var(--line); padding-top:var(--space-5); margin-top:var(--space-5)}
.case h2{margin:0}
.case .case-meta{font-size:var(--fs-xs); color:var(--primary); letter-spacing:.02em}
.case .case-body p{color:var(--muted); font-size:var(--fs-sm); margin-bottom:var(--space-3)}
.callout{background:var(--surface); border:1px solid var(--line); border-left:2px solid var(--primary); border-radius:8px; padding:var(--space-4); margin:var(--space-5) 0}
.callout p{margin:0; font-size:var(--fs-sm); color:var(--muted)}

/* —— 手机断点 —— */
@media (max-width:900px){
  .workbench{grid-template-columns:1fr}
  .panel{position:static}
  .grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-grid{grid-template-columns:1fr 1fr; gap:var(--space-5)}
}
@media (max-width:640px){
  :root{--space-7:36px; --space-8:48px}
  body{font-size:15px}
  .site-header .wrap{min-height:56px; flex-wrap:wrap}
  .nav-toggle{display:inline-block}
  .nav{display:none; order:3; width:100%; flex-direction:column; align-items:stretch; padding-bottom:var(--space-3)}
  .nav.open{display:flex}
  .nav a{padding:11px 12px; font-size:var(--fs-base)}
  .hero{padding-top:var(--space-4)}
  .stage{min-height:0; padding:var(--space-3)}
  .grid-cards{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .steps li{grid-template-columns:40px 1fr; gap:var(--space-3)}
  .steps .num{font-size:21px}
  .post-list a{grid-template-columns:1fr; gap:var(--space-1)}
  .post-list .pl-meta{padding-top:0; order:-1}
  .presets{grid-template-columns:repeat(3,1fr)}
  .prose{max-width:none}
  .prose table{font-size:var(--fs-xs)}
  .prose th,.prose td{padding:8px 6px}
  .foot-bottom{flex-direction:column; gap:var(--space-2)}
}
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease}
  .reveal.in{opacity:1; transform:none}
}

/* 修正：页脚/工具面板的小标题不用 h4，避免标题层级跳级 */
.foot-h{font-size:var(--fs-xs); font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--primary); margin:0 0 var(--space-3)}
.panel-h{font-size:var(--fs-xs); font-weight:600; text-transform:uppercase; letter-spacing:.1em; color:var(--primary); margin:var(--space-4) 0 var(--space-3)}
.panel .presets + .panel-h{margin-top:var(--space-4)}
.preset{font-size:12px}

/* 设计审稿后的微调：手机端标题与正文压力、背景网格可见度、眉题底色 */
@media (max-width:480px){
  .hero h1{font-size:clamp(26px,7.6vw,32px); line-height:1.22; padding-bottom:4px}
  .hero .lede{font-size:15px; line-height:1.62; letter-spacing:-.01em}
  .site-header .wrap{padding-block:6px}
  .nav-toggle{padding:10px 16px}
}
body::before{background-image:linear-gradient(rgba(34,211,238,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(34,211,238,.06) 1px,transparent 1px)}
.eyebrow{background:rgba(34,211,238,.09); padding:5px 10px; border-radius:999px}
@media (max-width:640px){
  .workbench{gap:var(--space-3)}
  .panel .export{grid-template-columns:1fr 1fr}
  .panel .export #dl-pdf{grid-column:1 / -1}
}


/* image-URL input in the grid tool (added 2026-11-21) */
.url-src{margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.url-src-label{display:block;font-size:var(--fs-xs);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.url-src-row{display:flex;gap:8px}
.url-src-row input{flex:1;min-width:0;height:38px;padding:0 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;color:var(--text);font:inherit;font-size:var(--fs-sm);font-family:var(--mono)}
.url-src-row input::placeholder{color:var(--muted)}
.url-src-row input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.url-src-row .btn{flex:0 0 auto;height:38px}
.url-src-msg{margin:8px 0 0;font-size:var(--fs-xs);line-height:1.5;color:var(--muted)}
.url-src-msg.is-busy{color:var(--primary)}
.url-src-msg.is-error{color:var(--text);font-weight:600}
@media (max-width:560px){.url-src{padding:12px}.url-src-row{flex-direction:column}.url-src-row .btn{width:100%}}


/* 导航：六个案例页收进「Grid setups」下拉（2026-11-21） */
.nav-drop{position:relative}
.nav-drop>summary{list-style:none;display:inline-block;padding:8px 12px;border-radius:6px;font-size:var(--fs-sm);color:var(--muted);cursor:pointer;transition:color .18s ease,background .18s ease}
.nav-drop>summary::-webkit-details-marker{display:none}
.nav-drop>summary::after{content:'▾';margin-left:6px;font-size:var(--fs-xs);color:var(--faint)}
.nav-drop>summary:hover,.nav-drop[open]>summary{color:var(--text);background:var(--surface)}
.nav-drop-panel{position:absolute;top:calc(100% + 8px);left:0;min-width:232px;padding:6px;background:var(--elevated);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 12px 28px var(--bg);z-index:30}
.nav-drop-panel a{display:block;padding:9px 12px;border-radius:6px;font-size:var(--fs-sm);color:var(--muted)}
.nav-drop-panel a:hover{color:var(--primary);background:var(--bg)}
.pl-meta{white-space:nowrap}
@media (max-width:640px){
  .nav-drop>summary{padding:11px 12px;font-size:var(--fs-base);color:var(--muted)}
  .nav-drop[open]>summary{color:var(--primary);background:var(--primary-glow)}
  .nav-drop-panel{position:static;min-width:0;box-shadow:none;border:0;border-left:2px solid var(--line-strong);border-radius:0;margin:0 0 var(--space-2) 12px;padding:0}
  .nav-drop-panel a{padding:9px 12px;font-size:var(--fs-sm)}
}


/* 手机首屏收紧：让上传区尽量进第一屏（2026-11-21） */
@media (max-width:600px){
  html body .hero{padding-top:var(--space-3);padding-bottom:var(--space-4)}
  html body .hero h1{font-size:clamp(25px,7vw,31px);line-height:1.2}
  html body .hero .lede{font-size:var(--fs-sm);margin-bottom:var(--space-3)}
  html body .hero-tags{display:flex;flex-wrap:wrap;gap:6px}
  html body .hero-tags .tag{font-size:var(--fs-xs);padding:3px 8px}
}


/* 2026-11-21：长内容偏左、右侧一大块空白 → 文字区统一收进居中的阅读栏，段落填满栏宽 */
html body{--read:780px}
html body .wrap > .hero,
html body .wrap > .section,
html body .prose,
html body .article-body,
html body .article-wrap{width:100%;max-width:var(--read);margin-inline:auto}
html body .section{padding-top:var(--space-7)}
@media (max-width:760px){
  html body .wrap > .hero,
  html body .wrap > .section,
  html body .prose,
  html body .article-body,
  html body .article-wrap{max-width:none}
}
/* 阅读栏内段落不再各自缩窄，左右边缘对齐 */
html body .wrap > .hero .lede,
html body .section-head,
html body .section-head p,
html body .prose,
html body .prose p,
html body .prose li,
html body .prose blockquote,
html body .article-body p,
html body .article-body li,
html body .article-body blockquote,
html body .article-wrap p,
html body .article-wrap li,
html body .article-wrap .lede,
html body .article-wrap .section-head,
html body .steps li p,
html body .steps p,
html body .faq p,
html body .pl-ex,
html body .case .case-body p,
html body .callout p{max-width:none}



/* 2026-11-21 二改：首屏和工具同宽，正文仍是居中阅读栏，避免首屏标题段落缩在左栏 */
html body{--wide:1040px}
html body .wrap > .hero,
html body .wrap > [data-gf-tool]{width:100%;max-width:var(--wide);margin-inline:auto}
html body .article-body > h2:first-child{margin-top:0}
html body .article-body p{margin-bottom:var(--space-5)}
html body .steps li{padding-top:var(--space-4);padding-bottom:var(--space-4)}
html body .prose th,
html body .prose td{padding:9px 12px;line-height:1.55}
@media (max-width:1080px){
  html body .wrap > .hero,
  html body .wrap > [data-gf-tool]{max-width:none}
}
@media (max-width:600px){
  html body .dropzone{padding:var(--space-5) var(--space-3)}
  html body .hero .eyebrow{font-size:var(--fs-xs);letter-spacing:.06em}
}


/* 手机端眉题字号回到最小允许值（补上一条 11px 的检查警告） */
@media (max-width:600px){
  html body .hero .eyebrow{font-size:var(--fs-xs);letter-spacing:.06em}
}

/* —— 手机端：首页工具尽量靠上（2026-11-21） —— */
html body .home-wrap{display:flex;flex-direction:column}
html body .home-wrap>.hero{order:1}
html body .home-wrap>.hero-sub{order:2}
html body .home-wrap>[data-gf-tool]{order:3}
html body .hero-sub .lede{font-size:var(--fs-md);color:var(--muted);max-width:62ch;margin-bottom:var(--space-4)}
html body .panel{display:flex;flex-direction:column}
html body .panel>.pg-presets{order:1}
html body .panel>.pg-grid{order:2}
html body .panel>.pg-export{order:3}
@media (max-width:760px){
  html body .site-header .wrap{min-height:54px}
  html body .hero{padding:var(--space-3) 0 0}
  html body .hero .eyebrow{font-size:var(--fs-xs);letter-spacing:.06em;margin-bottom:var(--space-2)}
  html body h1{font-size:clamp(24px,6.8vw,29px);line-height:1.18}
  html body .hero h1{margin-bottom:0}
  html body .home-wrap>[data-gf-tool]{order:2;margin-top:var(--space-4)}
  html body .home-wrap>.hero-sub{order:3;padding-top:var(--space-5)}
  html body .hero-sub .lede{font-size:var(--fs-base);margin-bottom:var(--space-3)}
  html body .hero-tags{margin-bottom:0}
  html body .workbench{gap:var(--space-3)}
  html body .stage{padding:var(--space-3);min-height:0;gap:var(--space-2)}
  html body .dropzone{padding:var(--space-5) var(--space-3);gap:var(--space-2)}
  html body .dropzone .dz-icon{width:34px;height:34px}
  html body .canvas-hold canvas{max-height:46vh;width:100%;object-fit:contain}
  html body .panel{padding:var(--space-3)}
  html body .panel>.pg-presets{order:1}
  html body .panel>.pg-export{order:2}
  html body .panel>.pg-grid{order:3}
  html body .pgroup{margin-bottom:var(--space-4)}
  html body .pgroup:last-child{margin-bottom:0}
  html body .export{grid-template-columns:1fr 1fr;gap:var(--space-2)}
  html body .export .btn:first-child{grid-column:1/-1}
}

/* 修正：order 默认 0 的区块会跑到前面，所以每个直接子元素都显式排序 */
html body .home-wrap>*{order:6}
html body .home-wrap>.hero{order:1}
html body .home-wrap>[data-gf-tool]{order:2}
html body .home-wrap>.attr-strip{order:3}
html body .home-wrap>.attr-note{order:4}
html body .home-wrap>.hero-sub{order:5}
html body .home-wrap>.section{order:6}
html body .home-wrap>.article-body{order:6}
@media (min-width:761px){
  html body .home-wrap>.hero{order:1}
  html body .home-wrap>.hero-sub{order:2}
  html body .home-wrap>[data-gf-tool]{order:3}
  html body .home-wrap>.attr-strip{order:4}
  html body .home-wrap>.attr-note{order:5}
  html body .home-wrap>.section{order:6}
  html body .home-wrap>.article-body{order:6}
}
html body .article-body p,html body .article-body li{font-family:var(--sans);line-height:1.75}
html body .article-body table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;margin:0 0 var(--space-5)}
html body .article-body th{font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--primary);border-bottom:1px solid var(--line-strong);padding:10px 12px;text-align:left}
html body .article-body td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;font-variant-numeric:tabular-nums}
html body .article-body h2{margin-top:var(--space-7)}

/* 手机端：上传 → 预设 → 画布 → 下载；参数滑块排在后面（工具不再整屏之后才可操作） */
@media (max-width:760px){
  html body .workbench{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
  html body .workbench>.stage,html body .workbench>.panel{display:contents}
  html body .workbench .pgroup{display:block;margin:0;min-width:0}
  html body .workbench .panel-h{margin:0 0 var(--space-2)}
  html body #dz{order:1}
  html body #gm-url{order:2}
  html body .workbench .pg-presets{order:3}
  html body #hold{order:4;width:100%}
  html body .stage-bar{order:5}
  html body #note{order:6}
  html body .workbench .pg-export{order:7;border-top:1px solid var(--line);padding-top:var(--space-3)}
  html body .workbench .pg-grid{order:8;border-top:1px solid var(--line);padding-top:var(--space-3)}
  html body .canvas-hold canvas{max-height:44vh}
}
@media (min-width:761px){
  html body .panel{gap:var(--space-3)}
  html body .panel>.pgroup+.pgroup{border-top:1px solid var(--line);padding-top:var(--space-4)}
}

/* 手机端再收一档：窄屏 H1 更小、上传区更矮，预设按钮能进首屏 */
@media (max-width:480px){
  html body h1{font-size:clamp(22px,6.4vw,26px);line-height:1.16}
  html body .hero .eyebrow{margin-bottom:6px}
  html body .dropzone{padding:var(--space-4) var(--space-3)}
  html body .dz-title{font-size:var(--fs-base);line-height:1.35}
  html body .dz-sub{line-height:1.45}
  html body .url-src-msg{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45}
  html body .canvas-hold canvas{max-height:40vh}
}

/* 内页：案例块分隔、手机上正文更透气、面包屑不挤开第一屏 */
html body .case{border-top:1px solid var(--line);padding-top:var(--space-5);margin-top:var(--space-5)}
html body .case:first-of-type{border-top:0;padding-top:0;margin-top:0}
html body .crumbs{display:flex;align-items:center;gap:6px;overflow:hidden;max-width:100%}
html body .crumbs a{flex:none}
html body .crumbs span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){
  html body .prose{line-height:1.8}
  html body .prose p,html body .prose li{line-height:1.8;margin-bottom:var(--space-4)}
  html body .prose h2{margin-top:var(--space-6);margin-bottom:var(--space-3)}
  html body .case{padding-top:var(--space-4);margin-top:var(--space-4)}
  html body .case h2{font-size:var(--fs-md)}
  html body .case-meta{font-size:var(--fs-xs)}
  html body .crumbs{font-size:var(--fs-xs)}
}

/* 收尾：手机上包屑强制单行省略；正文内链接加下划线 */
html body .prose a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
html body .prose a:hover{text-decoration-color:var(--primary)}
@media (max-width:760px){
  html body .crumbs{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.5}
  html body .crumbs span{margin:0 4px}
}


/* Product Hunt 关注徽章（页脚，2026-11-23） */
.foot-ph{margin-top:var(--space-6);display:flex;align-items:center;gap:var(--space-3)}
.foot-ph a{display:inline-block;line-height:0;border-radius:10px;transition:opacity .18s ease}
.foot-ph a:hover{opacity:.88}
.foot-ph img{display:block;width:250px;height:54px}
@media (max-width:640px){.foot-ph{margin-top:var(--space-5)}}
