/* 教程区（2026-11-02）：/tutorials、/tutorial/community、/tutorial/prompts 共用。
   依赖 styles.css 的浅色令牌；body.dark 沿用全站深色变量。
   2026-11-07 起教程区与其它页面一致，main 首行放 #ad-banner-top（由 ads.js 填充）。 */

.tut-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  color: var(--text-color);
  border-bottom: 1px solid rgba(77, 107, 254, 0.14);
  box-shadow: 0 1px 12px rgba(23, 35, 80, 0.06);
}
.tut-topbar a { color: var(--text-color); text-decoration: none; white-space: nowrap; }
.tut-topbar .tut-brand { font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tut-topbar .tut-back { font-size: 0.88em; opacity: 0.72; }
.tut-topbar .tut-back:hover { opacity: 1; color: var(--primary-color); }
.tut-topbar .tut-spacer { flex: 1; min-width: 4px; }
.tut-topbar .tut-sel {
  background: transparent;
  color: var(--text-color);
  border: 1px solid rgba(77, 107, 254, 0.35);
  border-radius: 7px;
  padding: 4px 6px;
  font-size: 0.82em;
  max-width: 105px;
}
.tut-topbar .tut-sel option { color: #1e232c; }
.tut-theme {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(77, 107, 254, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.tut-theme:hover { border-color: var(--primary-color); color: var(--primary-color); }
body.dark .tut-topbar {
  background: rgba(28, 30, 38, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
body.dark .tut-topbar a { color: #e8eaf0; }
body.dark .tut-sel { border-color: rgba(143, 166, 255, 0.4); }

.tut-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 18px 60px;
  box-sizing: border-box;
  line-height: 1.75;
}
/* styles.css 的 main 是 flex column + align-items:center，section 作为直接子项会
   shrink-to-fit（工作台曾因此缩成 520px）。教程页统一让一级块撑满容器。 */
.tut-main > * { width: 100%; box-sizing: border-box; }
.tut-main--wide { max-width: 1200px; }
.tut-h1 .nowrap { white-space: nowrap; }

.tut-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.82em;
  opacity: 0.68;
}
.tut-crumb a { color: inherit; text-decoration: none; }
.tut-crumb a:hover { color: var(--primary-color); opacity: 1; }

.tut-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.tut-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(77, 107, 254, 0.09);
  border: 1px solid rgba(77, 107, 254, 0.16);
  color: var(--primary-color);
  font-size: 0.72em;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 650;
}
.tut-pill.green {
  color: #138b5c;
  background: rgba(38, 168, 106, 0.1);
  border-color: rgba(38, 168, 106, 0.2);
}
body.dark .tut-pill.green { color: #6fdc9e; }

.tut-h1 {
  max-width: 21em;
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4.3vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: var(--text-color);
  text-wrap: balance;
}
.tut-lede {
  max-width: 68ch;
  margin: 0 0 14px;
  font-size: 1.01em;
  color: var(--text-color);
  opacity: 0.78;
}
.tut-lede strong { color: var(--text-color); opacity: 1; }
.tut-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; padding: 0; list-style: none; }
.tut-tags li {
  padding: 4px 10px;
  border: 1px solid rgba(30, 42, 80, 0.1);
  border-radius: 999px;
  background: var(--bg-color);
  font-size: 0.78em;
  color: var(--text-color);
  opacity: 0.82;
}
body.dark .tut-tags li { border-color: rgba(255, 255, 255, 0.11); }

.tut-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.tut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid rgba(77, 107, 254, 0.28);
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 0.88em;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.tut-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tut-btn.primary { background: var(--primary-grad); border-color: transparent; color: #fff; }
.tut-btn.primary:hover { filter: brightness(1.06); color: #fff; }
.tut-btn:disabled { opacity: 0.56; cursor: wait; }
.tut-btn.small { min-height: 30px; padding: 4px 10px; font-size: 0.78em; font-weight: 600; }

.tut-note {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  background: rgba(77, 107, 254, 0.055);
  font-size: 0.88em;
  color: var(--text-color);
}
.tut-note strong { color: var(--primary-color); }
.tut-note.warn { border-left-color: #d98a20; background: rgba(217, 138, 32, 0.075); }
.tut-note.warn strong { color: #a9650d; }
body.dark .tut-note.warn strong { color: #f0b45b; }

/* hub */
.tut-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.75fr);
  gap: 26px;
  align-items: end;
  margin: 0 0 26px;
}
.tut-hub-stat {
  padding: 18px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 16px;
  background: var(--bg-color);
  box-shadow: 0 4px 20px rgba(23, 35, 80, 0.045);
}
.tut-hub-stat b { display: block; font-size: 2.15rem; line-height: 1; letter-spacing: -0.05em; color: var(--primary-color); }
.tut-hub-stat span { display: block; margin-top: 8px; font-size: 0.8em; opacity: 0.67; }
.tut-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.tut-route-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 18px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 15px;
  background: var(--bg-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 3px 14px rgba(23, 35, 80, 0.045);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.tut-route-card:hover { transform: translateY(-3px); border-color: rgba(77, 107, 254, 0.3); box-shadow: 0 9px 25px rgba(23, 35, 80, 0.09); }
.tut-route-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font: 700 0.74em/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--primary-color);
  letter-spacing: 0.08em;
}
.tut-route-num span:last-child { color: var(--text-color); opacity: 0.38; letter-spacing: 0; }
.tut-route-card h2 { margin: 0 0 7px; font-size: 1.11rem; line-height: 1.4; color: var(--text-color); }
.tut-route-card p { margin: 0 0 14px; font-size: 0.87em; line-height: 1.65; color: var(--text-color); opacity: 0.7; flex: 1; }
.tut-route-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tut-route-meta span { font-size: 0.7em; padding: 2px 7px; border-radius: 5px; background: rgba(127, 127, 127, 0.08); opacity: 0.74; }
.tut-route-link { font-size: 0.86em; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.tut-route-link:hover { text-decoration: underline; }
.tut-hub-bottom { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; margin: 28px 0; }
.tut-panel {
  padding: 18px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 14px;
  background: var(--bg-color);
}
.tut-panel h2 { margin: 0 0 10px; font-size: 1.02rem; }
.tut-panel p { margin: 0 0 10px; font-size: 0.87em; opacity: 0.72; }
.tut-panel p:last-child { margin-bottom: 0; }
.tut-route-list { display: grid; gap: 8px; margin: 12px 0 0; }
.tut-route-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid rgba(30, 42, 80, 0.08); border-radius: 9px; color: var(--text-color); text-decoration: none; font-size: 0.86em; }
.tut-route-list a:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* article */
.tut-article { max-width: 900px; }
.tut-article h2 {
  margin: 38px 0 12px;
  padding-top: 4px;
  font-size: 1.34rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.tut-article h3 { margin: 24px 0 8px; font-size: 1.03rem; line-height: 1.5; }
.tut-article p { margin: 0 0 13px; }
.tut-article ul, .tut-article ol { margin: 8px 0 16px; padding-left: 1.4em; }
.tut-article li { margin: 5px 0; }
.tut-article a { color: var(--primary-color); }
.tut-article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: 0.86em;
  padding: 1px 5px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.07);
}
.tut-article pre {
  margin: 12px 0 18px;
  padding: 14px 15px;
  overflow-x: auto;
  border: 1px solid rgba(30, 42, 80, 0.1);
  border-radius: 10px;
  background: #f8f9fd;
  color: #1e232c;
  font: 0.82rem/1.65 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
body.dark .tut-article pre { background: #171a22; color: #dde2ee; border-color: rgba(255, 255, 255, 0.1); }
.tut-article pre code { border: 0; padding: 0; background: none; font-size: inherit; }

.tut-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.tut-info-card { padding: 15px 16px; border: 1px solid rgba(30, 42, 80, 0.09); border-radius: 12px; background: var(--bg-color); }
      .tut-info-card h3 { margin: 0 0 5px; font-size: 0.96rem; }
      /* community 页信息卡标题提升为 h2（修 h1→h3 跳级）：提高优先级完整钉住原 h3 视觉，压过 .tut-article h2 及其移动端覆写 */
      .tut-article .tut-info-card h2 { margin: 0 0 5px; padding-top: 0; font-size: 0.96rem; line-height: 1.5; letter-spacing: normal; }
.tut-info-card p { margin: 0; font-size: 0.85em; opacity: 0.7; }
.tut-info-card.ok { border-top: 3px solid #26a86a; }
.tut-info-card.no { border-top: 3px solid #d98a20; }

.tut-steps { counter-reset: tstep; display: grid; gap: 10px; margin: 16px 0 24px; padding: 0; list-style: none; }
.tut-steps li { position: relative; padding: 12px 14px 12px 48px; border: 1px solid rgba(30, 42, 80, 0.08); border-radius: 11px; background: var(--bg-color); font-size: 0.9em; }
.tut-steps li::before {
  counter-increment: tstep;
  content: counter(tstep);
  position: absolute;
  top: 12px;
  left: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 107, 254, 0.1);
  color: var(--primary-color);
  font: 700 0.78rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.tut-steps b { display: block; margin-bottom: 3px; color: var(--text-color); }
.tut-steps span { opacity: 0.72; }

.tut-prompt {
  position: relative;
  margin: 13px 0 20px;
  border: 1px solid rgba(30, 42, 80, 0.1);
  border-radius: 12px;
  background: #f8f9fd;
  overflow: hidden;
}
.tut-prompt-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(30, 42, 80, 0.08);
  background: rgba(77, 107, 254, 0.045);
}
.tut-prompt-head b { flex: 1; font-size: 0.8rem; letter-spacing: 0.02em; }
.tut-prompt pre { margin: 0; border: 0; border-radius: 0; background: transparent; color: #1e232c; max-height: 500px; overflow-y: auto; }
body.dark .tut-prompt { background: #171a22; border-color: rgba(255, 255, 255, 0.1); }
body.dark .tut-prompt-head { border-color: rgba(255, 255, 255, 0.08); background: rgba(143, 166, 255, 0.07); }
body.dark .tut-prompt pre { background: transparent; color: #dde2ee; border: 0; }

.tut-source {
  margin: 28px 0;
  padding: 16px;
  border: 1px dashed rgba(30, 42, 80, 0.15);
  border-radius: 12px;
  font-size: 0.84em;
  color: var(--text-color);
  opacity: 0.82;
}
.tut-source h2 { margin: 0 0 7px; font-size: 1rem; opacity: 1; }
.tut-source p { margin: 0 0 8px; }
.tut-source p:last-child { margin-bottom: 0; }

.tut-faq { display: grid; gap: 8px; margin: 14px 0 22px; }
.tut-faq details { padding: 11px 14px; border: 1px solid rgba(30, 42, 80, 0.09); border-radius: 10px; background: var(--bg-color); }
.tut-faq summary { cursor: pointer; font-weight: 650; font-size: 0.92em; }
.tut-faq details p { margin: 9px 0 0; font-size: 0.88em; opacity: 0.76; }

.tut-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 10px;
}
.tut-next a { display: block; padding: 14px 15px; border: 1px solid rgba(30, 42, 80, 0.09); border-radius: 12px; background: var(--bg-color); color: var(--text-color); text-decoration: none; }
.tut-next a:hover { border-color: var(--primary-color); }
.tut-next b { display: block; margin-bottom: 3px; color: var(--primary-color); font-size: 0.94rem; }
.tut-next span { font-size: 0.8em; opacity: 0.68; }
/* 2026-11-07 移除「永久无广告」脚注，教程区按全站策略展示页顶广告。 */

/* workbench */
.tut-wb {
  margin: 28px 0 42px;
  border: 1px solid rgba(30, 42, 80, 0.11);
  border-radius: 16px;
  background: var(--bg-color);
  box-shadow: 0 6px 30px rgba(23, 35, 80, 0.06);
  overflow: hidden;
}
.tut-wb-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(30, 42, 80, 0.08);
  background: linear-gradient(180deg, rgba(77, 107, 254, 0.065), rgba(77, 107, 254, 0));
}
.tut-wb-head h2 { margin: 0 0 4px; font-size: 1.08rem; }
.tut-wb-head p { margin: 0; font-size: 0.8em; opacity: 0.66; }
.tut-wb-steps { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0; }
.tut-wb-side { padding: 16px; border-right: 1px solid rgba(30, 42, 80, 0.08); }
.tut-wb-main { padding: 16px; min-width: 0; }
.tut-field { margin: 0 0 16px; }
.tut-field:last-child { margin-bottom: 0; }
.tut-field-label { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; font-size: 0.78em; font-weight: 700; }
.tut-field-label span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(77, 107, 254, 0.1); color: var(--primary-color); font: 700 0.67rem/1 ui-monospace, monospace; }
.tut-char { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid rgba(30, 42, 80, 0.09); border-radius: 9px; background: rgba(127, 127, 127, 0.035); }
.tut-char img { width: 46px; height: 58px; border-radius: 5px; object-fit: cover; background: #f1f3f8; flex: 0 0 auto; }
.tut-char b { display: block; font-size: 0.85rem; }
.tut-char span { display: block; margin-top: 2px; font-size: 0.68em; opacity: 0.6; line-height: 1.45; }
.tut-scene-list { display: grid; gap: 6px; }
.tut-scene-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 8px;
  background: transparent;
  color: var(--text-color);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.tut-scene-btn:hover { border-color: rgba(77, 107, 254, 0.3); }
.tut-scene-btn.on { border-color: var(--primary-color); background: rgba(77, 107, 254, 0.065); }
.tut-scene-btn i { font-style: normal; font-size: 1rem; width: 21px; text-align: center; flex: 0 0 auto; opacity: 0.75; }
.tut-scene-btn b { display: block; font-size: 0.79rem; line-height: 1.3; }
.tut-scene-btn span { display: block; margin-top: 1px; font-size: 0.64em; opacity: 0.56; }
.tut-refs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.tut-ref {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #f3f5fa;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}
.tut-ref img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tut-ref.on { border-color: var(--primary-color); }
.tut-ref.on::after { content: "✓"; position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-color); color: #fff; font-size: 9px; }
.tut-ref:disabled { opacity: 0.35; cursor: not-allowed; }
.tut-ref-help { margin: 6px 0 0; font-size: 0.66em; line-height: 1.5; opacity: 0.58; }

.tut-prompt-editor {
  width: 100%;
  min-height: 430px;
  box-sizing: border-box;
  resize: vertical;
  padding: 13px;
  border: 1px solid rgba(30, 42, 80, 0.13);
  border-radius: 9px;
  background: #f8f9fd;
  color: #1e232c;
  font: 0.82rem/1.65 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  outline: none;
}
.tut-prompt-editor:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.09); }
body.dark .tut-prompt-editor { background: #171a22; color: #dde2ee; border-color: rgba(255, 255, 255, 0.1); }
.tut-wb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.tut-wb-status { flex: 1; min-width: 120px; font-size: 0.74em; opacity: 0.62; }
.tut-wb-tip { margin: 10px 0 0; font-size: 0.74em; line-height: 1.55; opacity: 0.63; }
.tut-wb-tip a { color: var(--primary-color); }
.tut-wb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px 16px; border-top: 1px solid rgba(30, 42, 80, 0.08); background: rgba(127, 127, 127, 0.03); }
.tut-wb-foot .tut-wb-status { font-size: 0.75em; }

/* scene sections */
.tut-scene-block { margin: 34px 0 42px; scroll-margin-top: 78px; }
.tut-scene-head { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 12px; }
.tut-scene-index { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(77, 107, 254, 0.08); color: var(--primary-color); font: 700 0.82rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tut-scene-head h2 { margin: 0 0 4px; font-size: 1.28rem; }
.tut-scene-head p { margin: 0; font-size: 0.86em; opacity: 0.69; }
.tut-example {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 9px;
  border: 1px solid rgba(30, 42, 80, 0.09);
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.03);
}
.tut-example img { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; background: #f1f3f8; }
.tut-example b { display: block; margin-bottom: 4px; font-size: 0.83rem; }
.tut-example p { margin: 0 0 5px; font-size: 0.76em; line-height: 1.55; opacity: 0.68; }
.tut-example a { font-size: 0.76em; color: var(--primary-color); }
.tut-variants { margin: 12px 0; padding: 12px 14px; border-radius: 9px; background: rgba(38, 168, 106, 0.06); font-size: 0.84em; }
.tut-variants b { display: block; margin-bottom: 4px; color: #138b5c; }
body.dark .tut-variants b { color: #6fdc9e; }
.tut-variants ul { margin: 5px 0 0; padding-left: 1.25em; }
.tut-variants li { margin: 3px 0; opacity: 0.76; }

@media (max-width: 900px) {
  .tut-hub-hero { grid-template-columns: 1fr; gap: 14px; }
  .tut-hub-stat { display: flex; align-items: baseline; gap: 10px; }
  .tut-hub-stat span { margin-top: 0; }
  .tut-hub-grid { grid-template-columns: 1fr; }
  .tut-route-card { min-height: 0; }
  .tut-hub-bottom, .tut-next { grid-template-columns: 1fr; }
  .tut-wb-steps { grid-template-columns: 1fr; }
  .tut-wb-side { border-right: 0; border-bottom: 1px solid rgba(30, 42, 80, 0.08); }
  .tut-scene-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut-refs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .tut-main { padding: 72px 13px 48px; }
  .tut-topbar { gap: 7px; padding: 9px 11px; }
  .tut-topbar .tut-brand { font-size: 0.88em; }
  .tut-topbar .tut-back { font-size: 0; }
  .tut-topbar .tut-back::before { content: "‹"; font-size: 20px; line-height: 1; }
  .tut-topbar .tut-sel { max-width: 86px; font-size: 0.74em; }
  .tut-theme { width: 28px; height: 28px; }
  .tut-h1 { font-size: 1.72rem; }
  .tut-card-grid { grid-template-columns: 1fr; }
  .tut-wb { border-radius: 12px; }
  .tut-wb-head { padding: 14px; }
  .tut-wb-side, .tut-wb-main { padding: 13px; }
  .tut-scene-list { grid-template-columns: 1fr 1fr; }
  .tut-refs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .tut-prompt-editor { min-height: 360px; font-size: 0.77rem; }
  .tut-example { grid-template-columns: 96px minmax(0, 1fr); }
  .tut-example img { max-height: 130px; }
  .tut-prompt pre { max-height: 380px; font-size: 0.75rem; }
  .tut-article h2 { font-size: 1.2rem; margin-top: 30px; }
  .tut-actions .tut-btn { flex: 1 1 auto; }
}
@media print {
  .tut-topbar, .tut-wb, .tut-actions, #ad-banner-top, #pet-root { display: none !important; }
  .tut-main { max-width: none; padding: 0; }
  .tut-article pre { white-space: pre-wrap; break-inside: avoid; }
  body { color: #111; background: #fff; }
}
