/* Four-chapter dark guide V1. Only loaded by the new final-guide entry. */
@font-face { font-family: "MinisCloud Final PingFang SC"; src: local("PingFangSC-Regular"), local("PingFang SC Regular"), url("../assets/fonts/pingfangsc-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MinisCloud Final PingFang SC"; src: local("PingFangSC-Medium"), local("PingFang SC Medium"), url("../assets/fonts/pingfangsc-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "MinisCloud Final PingFang SC"; src: local("PingFangSC-Semibold"), local("PingFang SC Semibold"), url("../assets/fonts/pingfangsc-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
body.final-guide {
  --fg-bg: #050505;
  --fg-panel: #111114;
  --fg-panel-hover: #1c1c21;
  --fg-line: #ffffff24;
  --fg-text: #f5f5f7;
  --fg-muted: #b8b8bf;
  --fg-caption: #96969e;
  --fg-warm: #f2a18e;
  --fg-focus: #87cfff;
  --fg-gutter: clamp(20px, 4vw, 64px);
  --fg-width: 1480px;
  --fg-header: 80px;
  --fg-ease: cubic-bezier(.16, 1, .3, 1);
  margin: 0;
  background: var(--fg-bg);
  color: var(--fg-text);
  color-scheme: dark;
  font-family: "MinisCloud Final PingFang SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.final-guide *, .final-guide *::before, .final-guide *::after { box-sizing: border-box; }
.final-guide [hidden] { display: none !important; }
.final-guide :focus-visible { outline: 2px solid var(--fg-focus); outline-offset: 4px; }
.final-guide ::selection { background: #f2a18e40; color: #fff; }
.final-guide h1, .final-guide h2, .final-guide h3, .final-guide h4, .final-guide p, .final-guide figure { margin: 0; }
.final-guide h1, .final-guide h2, .final-guide h3 { font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.final-guide :lang(zh-CN) h1, .final-guide :lang(zh-CN) h2, .final-guide :lang(zh-CN) h3 { letter-spacing: 0; }
.final-guide img { display: block; max-width: 100%; height: auto; }
.final-guide button, .final-guide select { font: inherit; color: inherit; }
.final-guide button, .final-guide a, .final-guide select, .final-guide summary { -webkit-tap-highlight-color: transparent; }
.final-guide button { cursor: pointer; }
.final-guide a { color: var(--fg-warm); text-underline-offset: 4px; }
.final-guide button:disabled, .final-guide [aria-disabled="true"] { cursor: not-allowed; }
.final-guide section[id] { scroll-margin-top: 112px; }
.final-guide .skip { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: #fff; color: #111; border-radius: 8px; }
.final-guide .skip:focus { top: 12px; }
.final-guide .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Shared top-level navigation. */
.final-guide .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--fg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(var(--fg-gutter), calc((100vw - var(--fg-width)) / 2));
  background: #050505ec;
  border-bottom: 1px solid #ffffff10;
  backdrop-filter: blur(14px);
}
.final-guide .brand { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-width: 0; color: #fff; text-decoration: none; }
.final-guide .brand img { width: 188px; height: auto; object-fit: contain; }
/* The supplied wordmark white has alpha 51/255. Transfer alpha only; RGB stays unchanged. */
.final-guide .brand img { filter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22alpha%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type%3D%22linear%22%20slope%3D%225%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#alpha"); }
.final-guide .brand span { color: var(--fg-muted); font-size: 13px; }
.final-guide #chapter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.final-guide #chapter-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-bottom: 1px solid transparent; color: var(--fg-muted); font-size: 14px; text-decoration: none; }
.final-guide #chapter-nav a:hover { color: #fff; }
.final-guide #chapter-nav a[aria-current]:not([aria-current="false"]), .final-guide #chapter-nav a[data-active="true"] { border-color: var(--fg-warm); color: #fff; }
.final-guide .locale-switch, .final-guide .language-switch { display: flex; flex: none; gap: 2px; padding: 2px; border: 1px solid var(--fg-line); border-radius: 8px; }
.final-guide [data-locale] { min-height: 44px; min-width: 44px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--fg-muted); font-size: 13px; }
.final-guide [data-locale][aria-pressed="true"] { background: #ffffff15; color: #fff; }

/* Chapter one: the approved desktop, never simulated application windows. */
.final-guide .hero { padding: 156px var(--fg-gutter) 112px; text-align: center; background: radial-gradient(ellipse at 50% 32%, #171d2738, transparent 62%); }
.final-guide .hero-copy, .final-guide .hero-heading { max-width: 1120px; margin-inline: auto; }
.final-guide .hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.17; }
.final-guide #hero-title { display: grid; place-items: center; min-height: 2.34em; text-wrap: pretty; color: #e8f3ff; background: linear-gradient(110deg, #f6f9ff 25%, #8dbdff 88%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: opacity 380ms, transform 380ms var(--fg-ease); }
.final-guide :lang(zh-CN) #hero-title { word-break: auto-phrase; }
.final-guide #hero-title.is-changing, .final-guide #hero-title.out { opacity: 0; transform: translateY(10px); }
.final-guide #hero-guide { display: block; margin-top: 18px; color: #afc7e3; font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; line-height: 1.5; }
.final-guide #hero-word.is-changing, .final-guide #hero-word.out { opacity: 0; transform: translateY(12px); }
.final-guide .hero-display { max-width: 1180px; margin: 48px auto 0; }
.final-guide #nas-desktop {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
  gap: 28px 24px;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 10;
  min-height: min-content;
  margin: 48px auto 0;
  padding: 76px 56px 48px;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  overflow: hidden;
  background: #153341;
  box-shadow: 0 40px 100px #0009;
}
.final-guide .hero-display #nas-desktop { margin-top: 0; }
.final-guide #nas-desktop > img, .final-guide #nas-desktop .desktop-wallpaper, .final-guide #nas-desktop .wallpaper { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.final-guide .desktop-grid, .final-guide .desktop-apps, .final-guide .desktop-icons { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.final-guide .desktop-toolbar { position: absolute; top: 14px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 16px; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #0008; }
.final-guide .desktop-app { display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 10px; min-width: 44px; min-height: 88px; padding: 8px 4px; border: 1px solid transparent; border-radius: 12px; color: #fff; background: transparent; text-align: center; }
.final-guide .desktop-app img { width: 64px; height: 64px; object-fit: contain; }
.final-guide .desktop-app span { max-width: 100%; font-size: 14px; line-height: 1.5; text-shadow: 0 1px 5px #000b; overflow-wrap: anywhere; }
.final-guide .desktop-app:hover, .final-guide .desktop-app:focus-visible { background: #ffffff18; border-color: #ffffff38; }
.final-guide .desktop-note, .final-guide .hero-note { max-width: 70ch; margin: 16px auto 0; color: var(--fg-caption); font-size: 13px; line-height: 1.65; }

/* Natural-flow system app sections. DOM owns the reading order. */
.final-guide .system-chapter, .final-guide .extensions-chapter { padding: 96px var(--fg-gutter) 112px; }
.final-guide .chapter-heading, .final-guide .chapter-intro { max-width: var(--fg-width); margin-inline: auto; }
.final-guide .chapter-heading { margin-bottom: 40px; }
.final-guide .chapter-heading h2, .final-guide .chapter-title { max-width: 18ch; font-size: clamp(40px, 5.2vw, 80px); line-height: 1.12; }
.final-guide .chapter-heading p, .final-guide .chapter-intro { max-width: 70ch; margin-top: 20px; color: var(--fg-muted); font-size: 17px; }
.final-guide .system-shell { max-width: var(--fg-width); margin-inline: auto; }
.final-guide .system-navigation { padding: 20px 0 24px; border-block: 1px solid var(--fg-line); }
.final-guide #system-app-nav { display: grid; grid-template-columns: 5fr 2fr 3fr; gap: 24px; margin-top: 16px; }
.final-guide .system-category { min-width: 0; }
.final-guide .system-category summary { min-height: 44px; padding-block: 10px; color: var(--fg-caption); font-size: 13px; cursor: pointer; }
.final-guide .system-category ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.final-guide .system-category li { min-width: 0; max-width: 100%; }
.final-guide #system-nav-toggle { min-height: 44px; padding: 8px 12px; border: 1px solid var(--fg-line); border-radius: 8px; background: var(--fg-panel); color: var(--fg-text); }
/* Clip only the animated stage; the gutter preserves focus-ring clearance. */
.final-guide #system-sections { overflow-x: clip; overflow-y: visible; margin-inline: calc(-1 * var(--fg-gutter)); padding-inline: var(--fg-gutter); }
.final-guide .feature-tabs, .final-guide .scene-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.final-guide .feature-group { width: 100%; min-width: 0; }
.final-guide .feature-controls > .feature-controls { width: 100%; margin: 0; }
.final-guide .scene-count { flex-basis: 100%; color: var(--fg-caption); font-size: 13px; }
.final-guide .overview-title { margin: 24px 0 0; color: var(--fg-caption); font-size: 14px; font-weight: 500; }
.final-guide .app-copy > .app-overview { margin-top: 10px; }
.final-guide .current-feature-title { margin-top: 28px; font-size: 20px; line-height: 1.5; font-weight: 500; }
.final-guide .screenshot-frame { overflow: hidden; border-radius: 16px; }
.final-guide .detail-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 20px; font-size: 14px; }
.final-guide .scene-limit { font-size: 14px; }
.final-guide #closing-subtitle { margin-top: 20px; color: var(--fg-muted); font-size: 22px; }
.final-guide #download-note, .final-guide .motion-note { margin-top: 16px; color: var(--fg-caption); font-size: 13px; text-align: center; }
.final-guide .app-choice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--fg-line); border-radius: 10px; background: var(--fg-panel); color: var(--fg-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.final-guide .app-choice img { width: 28px; height: 28px; flex: none; object-fit: contain; }
.final-guide .app-choice:hover { background: var(--fg-panel-hover); color: #fff; }
.final-guide .app-choice[aria-pressed="true"], .final-guide .app-choice[data-active="true"] { border-color: var(--fg-warm); color: #fff; }
.final-guide #system-current { max-width: var(--fg-width); margin: 12px auto 0; color: var(--fg-caption); font-size: 13px; }
.final-guide .system-app-section { max-width: var(--fg-width); margin-inline: auto; padding-block: clamp(40px, 4.5vw, 72px); scroll-margin-top: 228px; }
.final-guide .section-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: clamp(32px, 4vw, 64px); min-height: 560px; }
.final-guide [data-side="left"] .section-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.final-guide .app-copy, .final-guide .app-visual, .final-guide .extension-copy, .final-guide .extension-visual { min-width: 0; }
.final-guide .app-copy h3, .final-guide .app-copy h2 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1.15; }
.final-guide .app-copy > p { max-width: 40ch; margin-top: 20px; color: var(--fg-muted); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.final-guide .app-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.final-guide .app-heading img, .final-guide .app-copy > img, .final-guide .extension-copy > img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.final-guide .feature-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.final-guide .feature-controls label { display: flex; flex: 1 1 180px; flex-direction: column; min-width: 0; gap: 6px; color: var(--fg-muted); font-size: 13px; line-height: 1.5; }
.final-guide .feature-controls select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff40; border-radius: 8px; background: var(--fg-panel); color: #fff; font-size: 14px; }
.final-guide .feature-controls button, .final-guide .scene-controls button { min-height: 44px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--fg-line); border-radius: 8px; background: var(--fg-panel); color: var(--fg-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.final-guide .feature-controls button[aria-selected="true"], .final-guide .feature-controls button[aria-pressed="true"], .final-guide .scene-controls button[aria-pressed="true"] { border-color: var(--fg-warm); color: #fff; font-weight: 600; }
.final-guide .scene-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.final-guide .guide-figure { width: 100%; margin: 0; }
.final-guide .figure-image, .final-guide .gallery-image { width: 100%; height: auto; object-fit: contain; }
.final-guide [data-app-id="notifications"] .guide-figure { max-width: 400px; margin-inline: auto; }
.final-guide .figure-caption { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 4px 20px; margin-top: 14px; color: var(--fg-caption); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.final-guide .figure-caption > span { flex: 1 1 240px; padding-top: 10px; }
.final-guide .figure-caption a, .final-guide .figure-caption button { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 0; border: 0; background: transparent; color: var(--fg-warm); font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.final-guide .details { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--fg-line); color: var(--fg-muted); font-size: 15px; }
.final-guide .details summary, .final-guide .extension-details summary { min-height: 44px; padding-block: 10px; color: var(--fg-text); cursor: pointer; }
.final-guide .details p, .final-guide .details ul, .final-guide .extension-details p, .final-guide .extension-details ul { max-width: 68ch; margin: 12px 0; line-height: 1.75; overflow-wrap: anywhere; }
.final-guide .details h4, .final-guide .extension-details h4, .final-guide h5.detail-section { margin-top: 24px; color: var(--fg-text); font-size: 16px; font-weight: 600; }
.final-guide .pending-media { min-height: 240px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; border: 1px dashed #ffffff30; border-radius: 16px; background: #ffffff05; color: var(--fg-muted); overflow-wrap: anywhere; }
.final-guide .pending-media h3, .final-guide .pending-media h4 { color: var(--fg-text); font-size: 22px; }
.final-guide .pending-media p { max-width: 62ch; }
.final-guide .pending-media code { font: inherit; font-size: 13px; }

/* Scroll visibility is independent of current-task selection; no stacked pictures. */
.final-guide .system-app-section .app-copy, .final-guide .system-app-section .app-visual { opacity: 1; transform: none; transition: opacity 650ms var(--fg-ease), transform 750ms var(--fg-ease); }
.final-guide .system-app-section[data-visible="false"] .app-copy { opacity: 0; transform: translateX(-36px); }
.final-guide .system-app-section[data-visible="false"] .app-visual { opacity: 0; transform: translateX(36px); }
.final-guide .system-app-section[data-side="right"][data-visible="false"] .app-copy { transform: translateX(36px); }
.final-guide .system-app-section[data-side="right"][data-visible="false"] .app-visual { transform: translateX(-36px); }
.final-guide .system-app-section:focus-within .app-copy, .final-guide .system-app-section:focus-within .app-visual { opacity: 1; transform: none; }
.final-guide .system-app-section[data-switch-direction="forward"] .section-inner.is-entering { animation: fg-system-forward 620ms cubic-bezier(.22, 1, .36, 1) both; }
.final-guide .system-app-section[data-switch-direction="backward"] .section-inner.is-entering { animation: fg-system-backward 620ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes fg-system-forward { from { opacity: .55; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fg-system-backward { from { opacity: .55; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.final-guide #system-dots { position: fixed; right: 10px; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 0; transform: translateY(-50%); }
.final-guide #system-dots button { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 10px; border: 0; background: transparent; }
.final-guide #system-dots button::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #777780; transition: background-color 160ms, transform 200ms; }
.final-guide #system-dots button[aria-current]:not([aria-current="false"])::before, .final-guide #system-dots button[data-active="true"]::before { background: var(--fg-warm); transform: scale(1.4); }
.final-guide #system-dots button span { position: absolute; right: 42px; width: max-content; max-width: 180px; padding: 4px 8px; border-radius: 6px; background: #151519; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; }
.final-guide #system-dots button:hover span, .final-guide #system-dots button:focus-visible span { opacity: 1; }

/* Chapter three keeps a stable visual-left 70 / copy-right 30 split. */
.final-guide .extensions-chapter .chapter-heading h2 { text-wrap: balance; max-width: 10em; font-size: clamp(44px, 5.6vw, 88px); }
.final-guide #extension-tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--fg-width); margin: 40px auto 32px; }
.final-guide #extension-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--fg-line); border-radius: 12px; background: transparent; color: var(--fg-muted); font-size: 15px; }
.final-guide #extension-tabs button img { width: 28px; height: 28px; object-fit: contain; }
.final-guide #extension-tabs button[aria-pressed="true"], .final-guide #extension-tabs button[aria-selected="true"] { background: var(--fg-text); border-color: var(--fg-text); color: #111; font-weight: 600; }
.final-guide #extension-panel { max-width: var(--fg-width); margin-inline: auto; }
.final-guide .extension-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); align-items: start; gap: 48px; }
.final-guide .extension-copy h3, .final-guide .extension-copy h2 { margin-bottom: 16px; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.2; }
.final-guide .extension-copy > p { max-width: 44ch; margin-block: 12px; color: var(--fg-muted); line-height: 1.75; overflow-wrap: anywhere; }
.final-guide .extension-copy .feature-controls { display: grid; grid-template-columns: minmax(0, 1fr); margin-block: 24px; }
.final-guide .extension-details { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--fg-line); color: var(--fg-muted); font-size: 15px; }
.final-guide .extension-details[open] { padding-bottom: 16px; }

/* Chapter four: genuine app labels, two paused-on-interaction lanes. */
.final-guide .showcase-chapter { padding-block: 112px; }
.final-guide .showcase-chapter > .chapter-heading { padding-inline: var(--fg-gutter); text-align: center; }
.final-guide .showcase-chapter > .chapter-heading h2 { margin-inline: auto; }
.final-guide #app-showcase { width: 100%; margin-top: 48px; }
.final-guide .marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.final-guide .marquee-track { display: flex; gap: 16px; width: max-content; padding-block: 10px; animation: fg-marquee 46s linear infinite; }
.final-guide .marquee:nth-child(2) .marquee-track, .final-guide .marquee[data-direction="reverse"] .marquee-track { animation-direction: reverse; animation-duration: 52s; }
.final-guide .showcase-tile { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 184px; min-height: 148px; padding: 24px 16px; border: 1px solid var(--fg-line); border-radius: 16px; background: var(--fg-panel); color: var(--fg-text); font-size: 14px; text-align: center; }
.final-guide .showcase-tile img { width: 56px; height: 56px; object-fit: contain; }
.final-guide .showcase-tile span { overflow-wrap: anywhere; }
.final-guide .marquee:hover .marquee-track, .final-guide .marquee:focus-within .marquee-track,
.final-guide #app-showcase[data-paused="true"] .marquee-track,
.final-guide #chapter-04:has(#showcase-pause[aria-pressed="true"]) .marquee-track { animation-play-state: paused; }
.final-guide #showcase-pause { display: block; min-height: 44px; margin: 28px auto 0; padding: 10px 18px; border: 1px solid var(--fg-line); border-radius: 8px; background: var(--fg-panel); color: #fff; font-size: 14px; }
.final-guide .closing, .final-guide .showcase-footer { max-width: 1100px; margin: 112px auto 0; padding-inline: var(--fg-gutter); text-align: center; }
.final-guide .closing h2, .final-guide .showcase-footer h2 { font-size: clamp(48px, 7vw, 104px); line-height: 1.1; }
.final-guide #download-action { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 32px; padding: 14px 28px; border: 1px solid transparent; border-radius: 12px; background: var(--fg-warm); color: #151013; font-weight: 600; text-decoration: none; }
.final-guide #download-action:disabled, .final-guide #download-action[aria-disabled="true"] { border-color: var(--fg-line); background: #18181b; color: var(--fg-muted); }
.final-guide .site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; max-width: var(--fg-width); margin-inline: auto; padding: 36px var(--fg-gutter); border-top: 1px solid var(--fg-line); color: var(--fg-caption); font-size: 13px; }
.final-guide .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
@keyframes fg-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }

/* Read-only original-image viewer, fit and actual pixels. */
.final-guide.viewer-open { overflow: hidden; }
.final-guide #image-viewer { width: min(1680px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #ffffff30; border-radius: 16px; background: #101013; color: var(--fg-text); }
.final-guide #image-viewer::backdrop { background: #000d; }
.final-guide .viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--fg-line); }
.final-guide #viewer-title { min-width: 0; font-size: 18px; line-height: 1.5; }
.final-guide .viewer-actions { display: flex; flex-wrap: wrap; flex: none; gap: 8px; }
.final-guide .viewer-actions button, .final-guide #viewer-fit, .final-guide #viewer-pixels, .final-guide #viewer-close { min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff48; border-radius: 8px; background: #18181d; color: #fff; font-size: 14px; }
.final-guide #viewer-fit[aria-pressed="true"], .final-guide #viewer-pixels[aria-pressed="true"] { border-color: var(--fg-warm); }
.final-guide #viewer-viewport { max-height: calc(100dvh - 200px); padding: 16px; overflow: auto; }
.final-guide #viewer-viewport:focus-visible { outline-offset: -3px; }
.final-guide #viewer-image { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 232px); margin-inline: auto; object-fit: contain; }
.final-guide #viewer-viewport.original #viewer-image, .final-guide #viewer-viewport[data-mode="pixels"] #viewer-image { max-width: none; max-height: none; margin: 0; }
.final-guide .viewer-hint { padding: 10px 16px 16px; color: var(--fg-caption); font-size: 13px; }

@media (max-width: 1150px) {
  .final-guide .site-header { flex-wrap: wrap; gap: 4px 20px; }
  .final-guide #chapter-nav { order: 3; width: 100%; }
  .final-guide .section-inner, .final-guide [data-side="left"] .section-inner { gap: 32px; }
  .final-guide .extension-layout { gap: 32px; }
  .final-guide #system-app-nav { top: 124px; }
}
@media (max-width: 800px) {
  body.final-guide { --fg-header: 144px; --fg-mobile-nav-top: 148px; }
  .final-guide .hero { padding-top: 192px; padding-bottom: 72px; }
  .final-guide .hero h1 { font-size: clamp(38px, 6vw, 64px); }
  .final-guide .system-chapter, .final-guide .extensions-chapter { padding-top: 72px; padding-bottom: 72px; }
  .final-guide #system-app-nav { grid-template-columns: 1fr; gap: 16px; }
  .final-guide #nas-desktop { aspect-ratio: auto; min-height: 500px; }
  .final-guide #system-dots { display: none; }
  .final-guide .system-navigation { position: sticky; top: var(--fg-mobile-nav-top); z-index: 45; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; background: #101014; border: 1px solid var(--fg-line); border-radius: 10px; }
  .final-guide #system-current { flex: 1 1 70px; margin: 0; padding: 0; overflow-wrap: anywhere; }
  .final-guide #system-app-nav { flex-basis: 100%; }
  .final-guide .system-navigation #system-app-nav:not([hidden]) { max-height: max(120px, calc(100dvh - var(--fg-mobile-nav-top) - 130px)); overflow-y: auto; overscroll-behavior: contain; }
  .final-guide .system-app-section { padding-block: 40px 48px; scroll-margin-top: calc(var(--fg-mobile-nav-top) + 64px); }
  .final-guide .section-inner, .final-guide [data-side="left"] .section-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
  .final-guide .app-copy h3, .final-guide .app-copy h2 { font-size: 36px; }
  .final-guide .app-copy > p { max-width: 65ch; font-size: 16px; }
  .final-guide .extension-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .final-guide .extension-copy .feature-controls { display: flex; }
  .final-guide .chapter-heading h2, .final-guide .chapter-title { font-size: clamp(36px, 6.5vw, 56px); }
}
@media (max-width: 600px) {
  body.final-guide { --fg-gutter: 20px; --fg-mobile-nav-top: 168px; }
  .final-guide .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 20px; gap: 4px 10px; }
  .final-guide .brand img { width: 146px; }
  .final-guide .brand { gap: 0 8px; }
  .final-guide .brand span { font-size: 12px; }
  .final-guide #chapter-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .final-guide #chapter-nav a { padding: 8px 4px; font-size: 13px; }
  .final-guide [data-locale] { padding-inline: 8px; }
  .final-guide .hero { padding-top: 196px; }
  .final-guide .hero h1 { font-size: clamp(28px, 7.2vw, 36px); }
  .final-guide .hero-display, .final-guide #nas-desktop { margin-top: 32px; }
  .final-guide #nas-desktop { min-height: 340px; aspect-ratio: auto; padding: 48px 12px 24px; gap: 12px 8px; border-radius: 14px; }
  .final-guide .desktop-grid, .final-guide .desktop-apps, .final-guide .desktop-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .final-guide .desktop-app { gap: 6px; min-height: 76px; padding: 4px 0; border-radius: 8px; }
  .final-guide .desktop-app img { width: 36px; height: 36px; }
  .final-guide .desktop-app span { font-size: 12px; line-height: 1.4; }
  .final-guide .desktop-toolbar { left: 12px; right: 12px; top: 12px; font-size: 11px; }
  .final-guide .chapter-heading { margin-bottom: 28px; }
  .final-guide .chapter-heading p, .final-guide .chapter-intro { font-size: 16px; }
  .final-guide #system-app-nav { gap: 16px; }
  .final-guide .system-category ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-guide .system-category .app-choice { width: 100%; }
  .final-guide .screenshot-frame { border-radius: 12px; }
  .final-guide .app-choice { flex: 1 1 calc(50% - 4px); justify-content: start; padding: 8px; }
  .final-guide .app-choice img { width: 24px; height: 24px; }
  .final-guide .app-copy h3, .final-guide .app-copy h2 { font-size: 32px; }
  .final-guide .feature-controls { gap: 10px; }
  .final-guide .feature-controls label { flex-basis: 100%; }
  .final-guide .figure-caption { gap: 0 12px; }
  .final-guide .pending-media { min-height: 200px; padding: 20px; }
  .final-guide #extension-tabs { gap: 8px; margin-top: 28px; }
  .final-guide #extension-tabs button { flex: 1 1 calc(50% - 4px); padding: 10px 12px; font-size: 14px; }
  .final-guide .extension-copy h3, .final-guide .extension-copy h2 { font-size: 30px; }
  .final-guide .extensions-chapter .chapter-heading h2 { font-size: 42px; }
  .final-guide .showcase-chapter { padding-block: 72px; }
  .final-guide .showcase-tile { width: 148px; min-height: 132px; padding: 20px 12px; }
  .final-guide .showcase-tile img { width: 48px; height: 48px; }
  .final-guide .closing, .final-guide .showcase-footer { margin-top: 80px; }
  .final-guide .viewer-header { flex-wrap: wrap; gap: 8px; }
  .final-guide #image-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .final-guide #viewer-viewport { padding: 8px; max-height: calc(100dvh - 240px); }
  .final-guide #viewer-image { max-height: calc(100dvh - 256px); }
}
@media (prefers-reduced-motion: reduce) {
  .final-guide *, .final-guide *::before, .final-guide *::after { scroll-behavior: auto; }
  .final-guide .system-app-section .app-copy, .final-guide .system-app-section .app-visual { opacity: 1; transform: none; transition: none; }
  .final-guide .system-app-section[data-switch-direction] .section-inner.is-entering { animation: none; }
  .final-guide #hero-word { transition: none; transform: none; }
  .final-guide .marquee { overflow: visible; mask-image: none; }
  .final-guide .marquee-track { width: 100%; flex-wrap: wrap; justify-content: center; animation: none; transform: none; }
  .final-guide .showcase-tile[aria-hidden="true"], .final-guide .showcase-tile[data-clone="true"] { display: none; }
}

/* JS uses a 900px reading breakpoint; align only chapter two in the 801–900 range. */
@media (min-width: 801px) and (max-width: 900px) {
  .final-guide #chapter-02 { --fg-mobile-nav-top: 148px; }
  .final-guide #chapter-02 #system-dots { display: none; }
  .final-guide #chapter-02 .system-navigation { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; background: #101014; border: 1px solid var(--fg-line); border-radius: 10px; }
  .final-guide #chapter-02 #system-current { flex: 1 1 70px; margin: 0; padding: 0; overflow-wrap: anywhere; }
  .final-guide #chapter-02 #system-app-nav { flex-basis: 100%; grid-template-columns: 1fr; gap: 16px; }
  .final-guide #chapter-02 .system-navigation #system-app-nav:not([hidden]) { max-height: max(120px, calc(100dvh - var(--fg-mobile-nav-top) - 130px)); overflow-y: auto; overscroll-behavior: contain; }
  .final-guide #chapter-02 .system-app-section { padding-block: 40px 48px; scroll-margin-top: calc(var(--fg-mobile-nav-top) + 64px); }
  .final-guide #chapter-02 .section-inner, .final-guide #chapter-02 [data-side="left"] .section-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; }
}

/* Chapter-two reader: always-visible prose beside uncropped, static source images. */
.final-guide #chapter-02 .app-choice, .final-guide #chapter-02 .feature-choice { position: relative; overflow: hidden; transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease; }
.final-guide #chapter-02 .app-choice::after, .final-guide #chapter-02 .feature-choice::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; border-radius: 2px; background: var(--fg-warm); opacity: 0; transform: scaleX(.25); transform-origin: left; transition: transform 480ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease; }
.final-guide #chapter-02 .app-choice[aria-pressed="true"], .final-guide #chapter-02 .feature-choice[aria-selected="true"] { background: #33241f; border-color: var(--fg-warm); color: var(--fg-text); }
.final-guide #chapter-02 .app-choice[aria-pressed="true"]::after, .final-guide #chapter-02 .feature-choice[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }
.final-guide #chapter-02 .feature-choice::after { background: #87cfff; }
.final-guide #chapter-02 .feature-choice[aria-selected="true"] { background: #142b3b; border-color: #87cfff; color: #ccecff; }
@media (prefers-reduced-motion: reduce) {
  .final-guide #chapter-02 .app-choice, .final-guide #chapter-02 .app-choice::after, .final-guide #chapter-02 .feature-choice, .final-guide #chapter-02 .feature-choice::after { transition: none; }
}
.final-guide #chapter-02 .section-inner { align-items: start; min-height: 0; }
.final-guide #chapter-02 .system-reader-content { max-width: 65ch; margin-top: 14px; color: var(--fg-muted); font-size: 16px; font-weight: 400; line-height: 1.75; overflow-wrap: anywhere; text-wrap: pretty; }
.final-guide #chapter-02 .reader-paragraph + .reader-paragraph { margin-top: 16px; }
.final-guide #chapter-02 .current-feature-title { margin-top: 28px; line-height: 1.4; text-wrap: balance; }
.final-guide #chapter-02 .app-copy > .app-overview { max-width: 65ch; }
.final-guide #chapter-02 .feature-group { display: grid; gap: 8px; }
.final-guide #chapter-02 .feature-group + .feature-tabs { margin-top: 16px; }
.final-guide #chapter-02 .feature-controls { margin-bottom: 20px; }
.final-guide #chapter-02 [data-app-id="notifications"] .system-reader-figure { max-width: none; }
.final-guide #chapter-02 .system-reader-figure .figure-image { width: 100%; height: auto; object-fit: contain; }
.final-guide #chapter-02 .system-reader-figure .figure-caption { margin-top: 12px; }
.final-guide #chapter-02 .system-reader-pending { min-height: 128px; padding: 24px; }
@media (max-width: 900px) {
  .final-guide #chapter-02 .system-reader-pending { min-height: 112px; padding: 20px; }
}

/* Scroll-linked display type; factual text and the reading flow stay unchanged. */
@supports (animation-timeline: view()) {
  .final-guide .animated-title { animation: fg-title linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
@keyframes fg-title { from { opacity: .35; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .final-guide .animated-title { animation: none; opacity: 1; transform: none; }
}

/* Chapter-one source image already contains the desktop icons and labels. */
.final-guide #nas-desktop { display: block; width: min(1180px, 100%); min-height: 0; aspect-ratio: auto; margin-top: 20px; padding: 0; }
.final-guide #nas-desktop .desktop-wallpaper { position: static; width: 100%; height: auto; object-fit: contain; }
.final-guide #nas-desktop .desktop-apps { position: absolute; inset: 0; z-index: 1; display: block; }
.final-guide .desktop-hotspot { position: absolute; left: var(--hotspot-x); top: var(--hotspot-y); width: 6%; height: 8%; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; transform: translate(-50%, -50%); }
.final-guide .desktop-hotspot:hover { border-color: #ffffffb0; background: #ffffff20; }
.final-guide .desktop-hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; background: #102c4259; }
.final-guide .desktop-mobile-list { display: none; }
.final-guide #desktop-mobile-close { display: none; }
.final-guide #desktop-notification-close { display: block; min-height: 44px; margin: 12px max(var(--fg-gutter), calc((100vw - 1180px) / 2)) 0 auto; padding: 9px 18px; border: 1px solid #ffffff70; border-radius: 9px; background: #171a20; color: #f5f5f7; font-size: 14px; }
.final-guide #desktop-notification-close:hover { background: #252b34; }
/* The provided image is the window; only its own red dot is interactive. */
.final-guide #desktop-window { position: absolute; z-index: 3; top: 6%; left: 26%; width: 59%; height: 76%; display: flex; align-items: center; justify-content: center; container-type: size; background: transparent; border: 0; box-shadow: none; pointer-events: none; }
.final-guide .desktop-window-content { width: 100%; height: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.final-guide .desktop-window-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: max-content; height: auto; max-width: 100%; max-height: 100%; pointer-events: auto; }
.final-guide #desktop-window-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: clamp(4px, 1vw, 12px); }
.final-guide #desktop-window-close { position: absolute; left: var(--close-x); top: var(--close-y); transform: translate(-50%, -50%); width: 20px; height: 20px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.final-guide #desktop-window-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #173c64; }
.final-guide #desktop-window-pending, .final-guide #desktop-window-error { max-width: 38ch; margin: 0; padding: 12px 16px; border-radius: 10px 10px 0 0; background: #f4f6f8; color: #263544; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; pointer-events: auto; }
.final-guide .desktop-pending-close { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 0 0 10px 10px; background: #f4f6f8; color: #263544; pointer-events: auto; }
.final-guide #desktop-window[data-media-state="loading"] #desktop-window-pending, .final-guide #desktop-window[data-media-state="loading"] .desktop-pending-close { background: #101925e8; color: #f5f5f7; }
.final-guide .desktop-window-image-wrap.is-entering { animation: fg-desktop-image-in 520ms cubic-bezier(.22, 1, .36, 1) both; }
/* Docker's source has a 4000×2882 nontransparent bounding box at (1840,720).
   This viewport removes only surrounding zero-alpha pixels; the source remains intact. */
.final-guide:lang(zh-CN) #desktop-window[data-preview-app="docker"] .desktop-window-image-wrap { display: block; width: min(100cqw, 138.7925cqh); height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 4000 / 2882; overflow: hidden; }
.final-guide:lang(zh-CN) #desktop-window[data-preview-app="docker"] #desktop-window-image { position: absolute; left: -46%; top: -24.98265%; width: 192%; height: auto; max-width: none; max-height: none; border-radius: 0; }
.final-guide:lang(zh-CN) #desktop-window[data-preview-app="docker"] #desktop-window-close { left: 3.632%; top: 5.0415%; }
/* Notification is a real top-right panel, not an application window. */
.final-guide #desktop-window[data-preview-app="notifications"] { top: 7%; left: auto; right: 1%; width: 23.4%; height: auto; aspect-ratio: 676 / 486; }
/* Keep the separate desktop close action beside, never on, the supplied panel. */
@supports (anchor-name: --fg-notification) and (top: anchor(bottom)) {
  .final-guide #desktop-window[data-preview-app="notifications"] { anchor-name: --fg-notification; }
  .final-guide #desktop-notification-close { position: fixed; position-anchor: --fg-notification; top: calc(anchor(bottom) + 8px); right: anchor(right); margin: 0; z-index: 50; position-try-fallbacks: flip-block; }
}
@keyframes fg-desktop-image-in { from { opacity: 0; transform: translateY(6px) scale(.992); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) {
  .final-guide #hero-title { min-height: 3.51em; }
  .final-guide :lang(zh-CN) #hero-title { max-width: 9em; }
  .final-guide #nas-desktop { min-height: 0; aspect-ratio: auto; padding: 0; }
  .final-guide #nas-desktop .desktop-apps { display: none; }
  .final-guide .desktop-mobile-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 680px; margin: 16px auto 0; }
  .final-guide .desktop-mobile-choice { min-height: 44px; padding: 8px 12px; border: 1px solid var(--fg-line); border-radius: 8px; background: var(--fg-panel); color: var(--fg-text); font-size: 13px; line-height: 1.4; }
  .final-guide .desktop-mobile-choice:hover { background: var(--fg-panel-hover); }
  .final-guide #desktop-mobile-close { display: block; min-height: 44px; margin: 12px auto 0; padding: 9px 18px; border: 1px solid #ffffff70; border-radius: 9px; background: #171a20; color: #f5f5f7; font-size: 14px; }
  .final-guide #desktop-mobile-close:hover { background: #252b34; }
  .final-guide #desktop-notification-close { display: none; }
  .final-guide #desktop-window-close, .final-guide #desktop-pending-close { display: none; }
  .final-guide #desktop-window { top: 7%; left: 20%; width: 77%; height: 86%; }
  .final-guide #desktop-window[data-preview-app="notifications"] { top: 7%; left: auto; right: 1%; width: 23.4%; height: auto; }
  .final-guide #desktop-window-close { width: 16px; height: 16px; }
  .final-guide #desktop-window-pending, .final-guide #desktop-window-error { font-size: 12px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .final-guide #hero-title { transition: none; transform: none; }
  .final-guide .desktop-window-image-wrap.is-entering { animation: none; }
}

/* ---- UI refinements (2026-10) ---- */
/* Hero: tighter rhythm, clearer interaction hint */
.final-guide .hero { padding-top: 120px; padding-bottom: 96px; }
.final-guide #nas-desktop { margin-top: 36px; }
.final-guide .desktop-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 16px; border: 1px solid var(--fg-line); border-radius: 999px; background: #ffffff08; color: var(--fg-muted); font-size: 14px; }
.final-guide .desktop-note::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--fg-focus); box-shadow: 0 0 0 0 #87cfff80; animation: fg-hint-pulse 2.4s ease-out infinite; }
@keyframes fg-hint-pulse { 0% { box-shadow: 0 0 0 0 #87cfff80; } 70%, 100% { box-shadow: 0 0 0 8px #87cfff00; } }

/* Chapter 2: app groups flow as one row instead of fixed, uneven columns */
.final-guide #system-app-nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 40px; }
.final-guide .system-category { flex: 0 1 auto; }

/* Stable screenshot area so layout never collapses while images load or fail */
.final-guide .screenshot-frame { background: linear-gradient(135deg, #16181e, #0d0e12); min-height: 240px; }

/* Pending media: calm placeholder instead of a dashed debug box */
.final-guide .pending-media { aspect-ratio: 16 / 10; min-height: 220px; align-items: center; text-align: center; border: 1px solid var(--fg-line); background: radial-gradient(ellipse at 50% 35%, #2a3550 0%, #14161c 55%, #0d0e12 100%); }
.final-guide .pending-media h3, .final-guide .pending-media h4 { font-size: 20px; font-weight: 500; }
.final-guide .pending-media .asset-id { display: none; }

/* Closing: no disabled button as the page's final call to action */
.final-guide #download-container[hidden] { display: none; }
.final-guide #download-note { margin-top: 28px; font-size: 15px; color: var(--fg-muted); }

@media (max-width: 600px) {
  .final-guide .hero { padding-top: 96px; padding-bottom: 72px; }
  .final-guide .desktop-note { font-size: 13px; }
  .final-guide .pending-media { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .final-guide .desktop-note::before { animation: none; } }

/* =====================================================================
   PREMIUM THEME LAYER — overrides only; delete this block to revert.
   Direction: quiet, cinematic dark; one cool accent drawn from the
   wallpaper (periwinkle → lavender); hairlines, glass, generous space.
   ===================================================================== */
.final-guide {
  --fg-bg: #04050a;
  --fg-panel: #0c0e15;
  --fg-panel-hover: #131624;
  --fg-line: rgba(255,255,255,.08);
  --fg-line-strong: rgba(255,255,255,.14);
  --fg-text: #f4f5fb;
  --fg-muted: #a9adbd;
  --fg-caption: #8c90a2;
  --fg-accent: #9db4ff;
  --fg-accent-2: #c6b3ff;
  --fg-warm: var(--fg-accent);
  --fg-focus: #b5c6ff;
  --fg-glass: rgba(12,14,22,.62);
  --fg-grad: linear-gradient(120deg, #ffffff 10%, #d7defc 45%, #a9b8ff 75%, #c9b6ff 100%);
  --fg-card: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  --fg-radius: 18px;
  --fg-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -30px rgba(0,0,0,.8);
  background: var(--fg-bg);
  color: var(--fg-text);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.final-guide ::selection { background: #9db4ff55; color: #fff; }
.final-guide :focus-visible { outline: 2px solid var(--fg-focus); outline-offset: 3px; border-radius: 10px; }

/* Ambient light behind the whole page */
.final-guide main { position: relative; isolation: isolate; }
.final-guide main::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1400px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 8%, rgba(110,130,255,.22), transparent 70%),
    radial-gradient(35% 30% at 78% 22%, rgba(190,150,255,.12), transparent 70%),
    radial-gradient(35% 30% at 20% 26%, rgba(90,170,255,.10), transparent 70%);
}

/* Header: floating glass bar */
.final-guide .site-header {
  background: var(--fg-glass) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--fg-line) !important;
}
.final-guide .brand span { padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--fg-line-strong); color: var(--fg-caption); letter-spacing: .04em; }
.final-guide #chapter-nav { gap: 4px; }
.final-guide #chapter-nav a { position: relative; padding: 8px 14px; border: 0 !important; border-radius: 999px; color: var(--fg-muted); transition: color .2s, background-color .2s; }
.final-guide #chapter-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.final-guide #chapter-nav a[aria-current]:not([aria-current="false"]) { color: #fff; background: rgba(255,255,255,.08); }
.final-guide .language-switch { padding: 3px; border: 1px solid var(--fg-line) !important; border-radius: 999px; background: rgba(255,255,255,.03); }
.final-guide [data-locale] { min-height: 36px; border-radius: 999px; padding: 6px 14px; }
.final-guide [data-locale][aria-pressed="true"] { background: #fff; color: #0a0b10; font-weight: 600; }

/* Hero */
.final-guide .hero { padding: clamp(110px, 14vh, 160px) var(--fg-gutter) 120px; background: none; }
.final-guide .hero-copy::before {
  content: "MINISCLOUD OS · USER GUIDE"; display: inline-block; margin-bottom: 28px; padding: 7px 16px;
  border: 1px solid var(--fg-line-strong); border-radius: 999px; background: rgba(255,255,255,.03);
  color: var(--fg-muted); font-size: 12px; font-weight: 500; letter-spacing: .22em;
}
.final-guide .hero h1 { font-size: clamp(44px, 6.4vw, 92px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.final-guide #hero-title { min-height: 2.2em; background: var(--fg-grad); -webkit-background-clip: text; background-clip: text; }
.final-guide #hero-guide { margin-top: 14px; color: var(--fg-muted); font-weight: 400; letter-spacing: .3em; font-size: clamp(13px, 1.1vw, 15px); text-transform: uppercase; }
.final-guide #nas-desktop {
  margin-top: 64px; border: 1px solid var(--fg-line-strong); border-radius: 28px;
  box-shadow: 0 0 0 8px rgba(255,255,255,.025), 0 60px 140px -40px rgba(80,100,255,.45), 0 40px 80px -20px rgba(0,0,0,.9);
}
.final-guide .desktop-note { margin-top: 32px; }

/* Chapter headings: eyebrow numbers + gradient type */
.final-guide .system-chapter, .final-guide .extensions-chapter { padding-block: clamp(110px, 14vw, 180px); }
.final-guide .chapter-heading { position: relative; margin-bottom: 56px; }
.final-guide .chapter-heading::before {
  display: block; margin-bottom: 20px; color: var(--fg-accent); font-size: 13px; font-weight: 500; letter-spacing: .24em;
}
.final-guide #chapter-02 .chapter-heading::before { content: "02 — SYSTEM"; }
.final-guide #chapter-03 .chapter-heading::before { content: "03 — APPS & EXTENSIONS"; }
.final-guide #chapter-04 .chapter-heading::before { content: "04 — SHOWCASE"; }
.final-guide .chapter-heading h2, .final-guide .extensions-chapter .chapter-heading h2, .final-guide .closing h2 {
  font-weight: 600; letter-spacing: -.035em; line-height: 1.05;
  background: var(--fg-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.final-guide .detail-link { gap: 8px; padding: 10px 18px; border: 1px solid var(--fg-line-strong); border-radius: 999px; color: var(--fg-text) !important; text-decoration: none !important; background: rgba(255,255,255,.03); transition: background-color .2s, border-color .2s; }
.final-guide .detail-link::after { content: "→"; transition: transform .25s var(--fg-ease); }
.final-guide .detail-link:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.25); }
.final-guide .detail-link:hover::after { transform: translateX(3px); }

/* Chapter 2 navigation as a single glass panel */
.final-guide .system-navigation { padding: 22px 28px 26px; border: 1px solid var(--fg-line) !important; border-radius: 22px; background: var(--fg-card); box-shadow: var(--fg-shadow); }
.final-guide #system-current { margin: 0 0 4px; color: var(--fg-caption); letter-spacing: .06em; }
.final-guide .system-category summary { color: var(--fg-caption); letter-spacing: .12em; font-size: 12px; text-transform: uppercase; list-style: none; }
.final-guide .system-category summary::-webkit-details-marker { display: none; }

/* Pills: app choices, feature/scene buttons, extension tabs */
.final-guide .app-choice,
.final-guide .feature-controls button, .final-guide .scene-controls button,
.final-guide #extension-tabs button {
  border: 1px solid var(--fg-line) !important; border-radius: 999px !important;
  background: rgba(255,255,255,.03) !important; color: var(--fg-muted) !important;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--fg-ease);
}
.final-guide .app-choice { padding: 6px 16px 6px 8px; }
.final-guide .app-choice:hover, .final-guide .feature-controls button:hover, .final-guide .scene-controls button:hover, .final-guide #extension-tabs button:hover {
  background: rgba(255,255,255,.07) !important; border-color: var(--fg-line-strong) !important; color: #fff !important;
}
.final-guide .app-choice[aria-pressed="true"], .final-guide .app-choice[data-active="true"],
.final-guide #chapter-02 .app-choice[aria-pressed="true"],
.final-guide #extension-tabs button[aria-pressed="true"], .final-guide #extension-tabs button[aria-selected="true"] {
  background: #fff !important; border-color: #fff !important; color: #0a0b10 !important; font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(157,180,255,.55);
}
.final-guide .feature-controls button[aria-selected="true"], .final-guide .feature-controls button[aria-pressed="true"],
.final-guide .scene-controls button[aria-pressed="true"], .final-guide #chapter-02 .feature-choice[aria-selected="true"] {
  background: rgba(157,180,255,.14) !important; border-color: rgba(157,180,255,.55) !important; color: #e3e9ff !important;
}
.final-guide #chapter-02 .app-choice::after, .final-guide #chapter-02 .feature-choice::after { display: none; }
.final-guide .feature-controls select {
  border: 1px solid var(--fg-line-strong); border-radius: 12px; background: rgba(255,255,255,.03); color: #fff;
}

/* App sections */
.final-guide .app-copy h3, .final-guide .app-copy h2, .final-guide .extension-copy h3, .final-guide .extension-copy h2 { font-weight: 600; letter-spacing: -.025em; }
.final-guide .app-heading { gap: 16px; }
.final-guide .app-heading img { filter: drop-shadow(0 10px 24px rgba(120,140,255,.35)); }
.final-guide .overview-title, .final-guide .current-feature-title { letter-spacing: .02em; }
.final-guide .overview-title { color: var(--fg-accent); font-size: 13px; letter-spacing: .14em; }

/* Screenshots & placeholders: framed like product shots */
.final-guide .screenshot-frame, .final-guide .pending-media, .final-guide .extension-visual > * {
  border: 1px solid var(--fg-line-strong) !important; border-radius: var(--fg-radius) !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,.02), 0 40px 100px -40px rgba(70,90,220,.45), 0 20px 50px -20px rgba(0,0,0,.8);
}
.final-guide .pending-media { background: radial-gradient(70% 60% at 50% 30%, rgba(120,140,255,.18), transparent 70%), #0a0c13 !important; }
.final-guide .figure-caption { color: var(--fg-caption); }
.final-guide .enlarge { color: var(--fg-accent); }

/* Details / accordions */
.final-guide .details, .final-guide .extension-details { border-top: 1px solid var(--fg-line); }
.final-guide .details summary, .final-guide .extension-details summary { color: var(--fg-text); font-weight: 500; cursor: pointer; }

/* Side dots */
.final-guide #system-dots button::before { width: 5px; height: 5px; background: rgba(255,255,255,.25); }
.final-guide #system-dots button[aria-current]:not([aria-current="false"])::before, .final-guide #system-dots button[data-active="true"]::before { height: 18px; border-radius: 3px; background: var(--fg-accent); transform: none; }
.final-guide #system-dots button span { background: var(--fg-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--fg-line); }

/* Showcase */
.final-guide .showcase-chapter { padding-block: 120px 0; }
.final-guide .showcase-chapter .chapter-heading { text-align: center; }
.final-guide .showcase-chapter .chapter-heading h2 { margin-inline: auto; }
.final-guide .showcase-tile {
  border: 1px solid var(--fg-line) !important; border-radius: 24px; background: var(--fg-card); color: var(--fg-muted);
  box-shadow: var(--fg-shadow); transition: transform .35s var(--fg-ease), border-color .3s, color .3s;
}
.final-guide .showcase-tile:hover { transform: translateY(-4px); border-color: var(--fg-line-strong) !important; color: #fff; }
.final-guide .showcase-tile img { filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.final-guide .showcase-tile[data-display-only] { cursor: default; }
.final-guide .showcase-tile[data-display-only]:hover { transform: none; border-color: var(--fg-line) !important; color: var(--fg-muted); }
@media (max-width: 600px) {
  .final-guide .showcase-tile { padding: 12px; gap: 8px; }
  .final-guide .showcase-tile span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 2.8em; line-height: 1.4; }
}
.final-guide #showcase-pause { border-radius: 999px; border: 1px solid var(--fg-line-strong); background: rgba(255,255,255,.03); color: var(--fg-muted); padding: 8px 20px; }

/* Closing */
.final-guide .closing { position: relative; margin-top: 160px; padding-block: 120px 140px; }
.final-guide .closing::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 90vw); height: 420px; z-index: -1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(120,140,255,.22), transparent); pointer-events: none;
}
.final-guide .closing h2 { font-size: clamp(56px, 9vw, 140px); }
.final-guide #closing-subtitle { color: var(--fg-muted); letter-spacing: .3em; font-size: 15px; text-transform: uppercase; }
.final-guide .download-action { display: inline-flex; align-items: center; min-height: 48px; margin-top: 36px; padding: 12px 28px; border-radius: 999px; background: #fff; color: #0a0b10; font-weight: 600; text-decoration: none; box-shadow: 0 10px 40px -10px rgba(157,180,255,.7); }
.final-guide #download-note { color: var(--fg-caption); letter-spacing: .04em; }

/* Footer */
.final-guide .site-footer { border-top: 1px solid var(--fg-line); color: var(--fg-caption); }
.final-guide .site-footer a { color: var(--fg-muted); text-decoration: none; }
.final-guide .site-footer a:hover { color: #fff; }

/* Viewer */
.final-guide .image-viewer { border: 1px solid var(--fg-line-strong); border-radius: 20px; background: #07080d; box-shadow: 0 50px 120px rgba(0,0,0,.8); }
.final-guide .image-viewer::backdrop { background: rgba(3,4,8,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.final-guide .viewer-actions button, .final-guide #viewer-fit, .final-guide #viewer-pixels, .final-guide #viewer-close { border-radius: 999px; border-color: var(--fg-line-strong); background: rgba(255,255,255,.04); }


@media (max-width: 800px) {
  .final-guide #chapter-nav a { padding: 8px 10px; }
  .final-guide .system-navigation { padding: 16px; border-radius: 18px; }
  .final-guide .hero-copy::before { font-size: 10px; letter-spacing: .16em; margin-bottom: 20px; }
  .final-guide #nas-desktop { margin-top: 40px; border-radius: 18px; }
}
@media (max-width: 600px) {
  .final-guide .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .final-guide #extension-tabs button { flex: 1 1 calc(50% - 4px); }
  .final-guide .closing { margin-top: 96px; padding-block: 80px; }
}

/* =====================================================================
   LAYOUT PASS — structure & rhythm. Delete this block to revert.
   ===================================================================== */
/* Global rhythm: one consistent section scale */
.final-guide { --fg-section: clamp(88px, 10vw, 144px); }
.final-guide .system-chapter, .final-guide .extensions-chapter { padding-block: var(--fg-section) 0; }
.final-guide .showcase-chapter { padding-top: var(--fg-section); }
.final-guide .chapter-heading { margin-bottom: 40px; }
.final-guide .chapter-heading h2 { font-size: clamp(40px, 5vw, 72px); }
.final-guide .extensions-chapter .chapter-heading h2 { font-size: clamp(40px, 5vw, 72px); max-width: none; }
.final-guide .extensions-chapter .chapter-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.final-guide .extensions-chapter .chapter-heading::before { flex-basis: 100%; margin-bottom: 0; }
.final-guide .extensions-chapter .detail-link { margin-top: 0; }

/* Hero: show more of the desktop in the first viewport */
.final-guide .hero { padding-top: clamp(84px, 9vh, 120px); padding-bottom: 0; }
.final-guide .hero-copy::before { margin-bottom: 20px; }
.final-guide #hero-title { min-height: 2.15em; }
.final-guide #nas-desktop { margin-top: 40px; }

/* Chapter 2: sticky sidebar + wide stage */
@media (min-width: 1000px) {
  .final-guide .system-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0 48px; align-items: start; }
  .final-guide .system-navigation { position: sticky; top: 104px; padding: 20px 14px; }
  .final-guide #system-current { padding-inline: 10px; }
  .final-guide #system-nav-toggle { display: none; }
  .final-guide #system-app-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .final-guide .system-category summary { padding: 8px 10px 4px; min-height: 0; }
  .final-guide .system-category ul { display: flex; flex-direction: column; gap: 2px; }
  .final-guide .system-category li { width: 100%; }
  .final-guide #system-app-nav .app-choice {
    width: 100%; justify-content: flex-start; min-height: 44px; padding: 6px 12px 6px 8px;
    border-color: transparent !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important;
  }
  .final-guide #system-app-nav .app-choice:hover { background: rgba(255,255,255,.05) !important; }
  .final-guide #system-app-nav .app-choice[aria-pressed="true"], .final-guide #system-app-nav .app-choice[data-active="true"] {
    background: rgba(157,180,255,.13) !important; border-color: rgba(157,180,255,.35) !important; color: #fff !important; font-weight: 500;
  }
  .final-guide #system-app-nav .app-choice img { width: 28px; height: 28px; }
  .final-guide #system-dots { display: none !important; }
  .final-guide #system-sections { grid-column: 2; margin-inline: 0; padding-inline: 0; overflow-x: clip; }
  .final-guide #chapter-02 .system-app-section { padding-block: 0 24px; scroll-margin-top: 104px; }
  /* Copy on top as a two-column intro, screenshot full width below */
  .final-guide #chapter-02 .section-inner, .final-guide #chapter-02 [data-side="left"] .section-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .final-guide #chapter-02 .app-copy { order: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 48px; align-items: start; }
  .final-guide #chapter-02 .app-copy > .app-heading { grid-column: 1 / -1; margin-bottom: 8px; }
  .final-guide #chapter-02 .app-copy > * { max-width: 60ch; }
  .final-guide #chapter-02 .app-copy .overview-title { grid-column: 1; margin-top: 0; }
  .final-guide #chapter-02 .app-copy .app-overview { grid-column: 1; }
  .final-guide #chapter-02 .app-copy .current-feature-title { grid-column: 2; grid-row: 2; margin-top: 0; }
  .final-guide #chapter-02 .app-copy .system-reader-content { grid-column: 2; grid-row: 3; margin-top: 8px; }
  .final-guide #chapter-02 .app-visual { order: 1; }
  .final-guide #chapter-02 .system-app-section[data-visible] .app-copy, .final-guide #chapter-02 .system-app-section[data-visible] .app-visual { transform: none; }
}

/* Chapter 3: tabs + panel aligned to one card */
.final-guide #extension-tabs { margin: 0 auto 24px; }
.final-guide #extension-panel { max-width: var(--fg-width); margin-inline: auto; }
.final-guide .extension-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 4vw, 64px); }
.final-guide .extension-copy { position: sticky; top: 104px; }

/* Showcase + closing: tighter finale */
.final-guide .closing { margin-top: 96px; padding-block: 96px 120px; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  /* Header: brand + language on one row, chapters as a single scrollable row */
  .final-guide .site-header { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; min-height: 0 !important; padding: 8px 16px 6px !important; gap: 6px 10px !important; }
  .final-guide #chapter-nav { grid-column: 1 / -1; grid-row: 2; display: flex !important; flex-wrap: nowrap !important; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
  .final-guide #chapter-nav::-webkit-scrollbar { display: none; }
  .final-guide #chapter-nav a { flex: none; min-height: 36px; padding: 6px 14px !important; white-space: nowrap; }
  .final-guide .brand img { width: 140px; height: auto; }
  .final-guide [data-locale] { min-height: 32px; padding: 4px 10px; font-size: 12px; }

  .final-guide .hero { padding-top: 56px; }
  .final-guide { --fg-section: 80px; }
  .final-guide .chapter-heading { margin-bottom: 28px; }
  .final-guide .chapter-heading h2, .final-guide .extensions-chapter .chapter-heading h2 { font-size: clamp(34px, 9vw, 44px); }

  /* Chapter 3 tabs: one swipeable row */
  .final-guide #extension-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--fg-gutter)); padding: 4px var(--fg-gutter) 8px; }
  .final-guide #extension-tabs::-webkit-scrollbar { display: none; }
  .final-guide #extension-tabs button { flex: none !important; min-height: 44px; padding: 8px 16px; }
  .final-guide .extension-copy { position: static; }
  .final-guide .extension-visual { order: -1; }
  .final-guide .extension-layout { display: flex; flex-direction: column; }
  .final-guide .closing { margin-top: 64px; padding-block: 64px 80px; }
}
@media (min-width: 1000px) { .final-guide .system-navigation { max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 800px) {
  .final-guide #chapter-nav { margin-inline: 0 -16px; padding-inline: 0 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .final-guide #chapter-nav { justify-content: flex-start !important; }
}

/* Fix: reading-group select collided with feature pills (Safari) */
.final-guide .feature-controls .feature-group { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.final-guide .feature-controls .feature-group label { color: var(--fg-caption); font-size: 12px; letter-spacing: .08em; }
.final-guide .feature-controls select, .final-guide .feature-group-select {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  display: block; width: 100%; height: 44px; min-height: 44px; padding: 0 40px 0 14px; line-height: 44px;
  border: 1px solid var(--fg-line-strong); border-radius: 12px; color: #fff; font-size: 14px;
  background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9adbd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.final-guide .feature-controls select option { background: #0c0e15; color: #fff; }
.final-guide .feature-controls .feature-tabs, .final-guide .scene-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.final-guide .feature-controls .feature-choice, .final-guide .scene-controls button { margin: 0; min-height: 40px; padding: 8px 16px; line-height: 1.4; }
.final-guide .scene-controls { margin-top: 12px; }
.final-guide .feature-controls .feature-group label { flex: none; display: block; min-height: 0; }

/* Fix: "阅读分组" label stretched tall (Safari/flex) */
.final-guide .feature-controls .feature-group > label { flex: 0 0 auto !important; display: block !important; height: auto !important; min-height: 0 !important; margin: 0 !important; }
.final-guide .feature-controls .feature-group { gap: 8px !important; }

/* =====================================================================
   UNIFIED MEDIA FRAME — every screenshot: same bezel + inner radius,
   same 16:10 stage, image contained (never cropped).
   ===================================================================== */
.final-guide { --frame-pad: clamp(8px, 1.1vw, 14px); --frame-radius: 22px; --frame-inner: 12px; --frame-ratio: 16 / 10; }
/* Remove the old outer box from figure wrappers so only one frame exists */
.final-guide .extension-visual > .guide-figure, .final-guide .extension-visual > figure { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; }
.final-guide .screenshot-frame,
.final-guide .pending-media {
  box-sizing: border-box; position: relative; overflow: hidden;
  aspect-ratio: var(--frame-ratio); width: 100%; min-height: 0 !important; height: auto;
  padding: var(--frame-pad) !important;
  border: 1px solid rgba(255,255,255,.10) !important; border-radius: var(--frame-radius) !important;
  background: linear-gradient(180deg, #17181f, #101116) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 100px -40px rgba(70,90,220,.40), 0 24px 50px -24px rgba(0,0,0,.85) !important;
}
.final-guide .screenshot-frame { display: flex; align-items: center; justify-content: center; }
.final-guide .screenshot-frame > img, .final-guide .screenshot-frame .figure-image, .final-guide .screenshot-frame .gallery-image,
.final-guide #chapter-02 .system-reader-figure .figure-image {
  display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain;
  border-radius: var(--frame-inner); background: #0b0c10;
}
/* Pending placeholder sits inside the same bezel */
.final-guide .pending-media { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background-clip: padding-box; }
.final-guide .pending-media::before { content: ""; position: absolute; inset: var(--frame-pad); z-index: 0; border-radius: var(--frame-inner); background: radial-gradient(70% 60% at 50% 35%, rgba(120,140,255,.18), transparent 70%), #0b0c12; }
.final-guide .pending-media > * { position: relative; z-index: 1; }
.final-guide .image-error { position: absolute; inset: auto 0 16px; text-align: center; }
.final-guide .figure-caption { margin-top: 14px; padding-inline: 4px; }
/* Hero desktop: same bezel language (ring, no layout change) */
.final-guide #nas-desktop { border-radius: var(--frame-radius); border-color: rgba(255,255,255,.10); box-shadow: 0 0 0 var(--frame-pad) #14151b, 0 0 0 calc(var(--frame-pad) + 1px) rgba(255,255,255,.10), 0 60px 140px -40px rgba(80,100,255,.4), 0 40px 80px -20px rgba(0,0,0,.9); }
.final-guide .hero { padding-inline: calc(var(--fg-gutter) + 14px); }
/* Image viewer keeps full image, framed the same */
.final-guide #viewer-image { border-radius: var(--frame-inner); }
@media (max-width: 600px) { .final-guide { --frame-radius: 16px; --frame-inner: 9px; } }
.final-guide .screenshot-frame > img, .final-guide .screenshot-frame .figure-image, .final-guide .screenshot-frame .gallery-image, .final-guide #chapter-02 .system-reader-figure .figure-image { background: transparent !important; width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* Frame v2: bezel wraps the image (like the hero desktop). No fixed ratio, no cropping. */
.final-guide .screenshot-frame {
  display: block !important; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important;
  padding: var(--frame-pad) !important; overflow: visible !important;
  background: #14151b !important;
  border: 1px solid rgba(255,255,255,.10) !important; border-radius: var(--frame-radius) !important;
}
.final-guide .screenshot-frame > img, .final-guide .screenshot-frame .figure-image, .final-guide .screenshot-frame .gallery-image,
.final-guide #chapter-02 .system-reader-figure .figure-image {
  display: block !important; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important;
  object-fit: initial !important; border-radius: var(--frame-inner) !important; background: transparent !important; margin: 0 !important;
}
.final-guide .pending-media { aspect-ratio: 16 / 10 !important; background: #14151b !important; }

/* Docker reading: keep expanded guidance below the image and its short explanation. */
.final-guide #extension-panel[data-current-app="docker"] .extension-copy { position: static; }
.final-guide #extension-panel[data-current-app="docker"] > .extension-details { margin-top: 32px; padding-top: 8px; }
.final-guide #extension-panel[data-current-app="docker"] > .extension-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding-block: 16px; list-style: none; font-size: 16px;
}
.final-guide #extension-panel[data-current-app="docker"] > .extension-details > summary::-webkit-details-marker { display: none; }
.final-guide #extension-panel[data-current-app="docker"] > .extension-details > summary::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px; flex: none;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg);
}
.final-guide #extension-panel[data-current-app="docker"] > .extension-details[open] > summary::after { transform: rotate(225deg); }
.final-guide .docker-detail-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start; gap: 24px 40px; padding-block: 16px 8px;
}
.final-guide .docker-detail-grid .detail-section { min-width: 0; }
.final-guide .docker-detail-grid .detail-section h5 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--fg-text); }
.final-guide .docker-detail-grid .detail-section ul { max-width: none; margin: 0; padding-left: 1.2em; line-height: 1.85; }
.final-guide .docker-detail-grid .detail-section li + li { margin-top: 12px; }
@media (max-width: 1100px) {
  .final-guide .docker-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
}
@media (max-width: 900px) {
  .final-guide #extension-panel[data-current-app="docker"] .extension-layout { display: flex; flex-direction: column; }
  .final-guide #extension-panel[data-current-app="docker"] .extension-visual { order: 0; }
}
@media (max-width: 767px) {
  .final-guide .docker-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Chapter 1: "jump to detailed section" button, shown while a desktop preview is open */
.final-guide .desktop-jump[hidden] { display: none !important; }
.final-guide .desktop-jump {
  position: fixed; z-index: 60; right: max(24px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px; max-width: min(340px, calc(100vw - 48px)); min-height: 64px; padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px; color: #fff; text-align: left; cursor: pointer;
  background: rgba(14,16,26,.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 20px 60px -20px rgba(80,110,255,.55), 0 10px 30px -10px rgba(0,0,0,.7); font: inherit;
  transition: background-color .2s, border-color .2s, transform .3s var(--fg-ease);
}
.final-guide .desktop-jump:hover { background: rgba(26,30,46,.82); border-color: rgba(157,180,255,.5); }
.final-guide .desktop-jump:hover .desktop-jump-arrow { transform: translateX(4px); }
.final-guide .desktop-jump img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.final-guide .desktop-jump-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.final-guide .desktop-jump-title { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.final-guide .desktop-jump-sub { font-size: 12px; color: var(--fg-caption); letter-spacing: .04em; }
.final-guide .desktop-jump-arrow { margin-left: auto; padding-left: 6px; color: var(--fg-accent); font-size: 18px; transition: transform .25s var(--fg-ease); }
.final-guide .desktop-jump.is-entering { animation: fg-jump-in .5s var(--fg-ease) both; }
@keyframes fg-jump-in { from { opacity: 0; transform: translate(24px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@media (max-width: 800px) {
  .final-guide .desktop-jump { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; left: 16px; max-width: none; transform: none; }
  @keyframes fg-jump-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .final-guide .desktop-jump.is-entering { animation-name: fg-jump-in-m; }
  @keyframes fg-jump-in-m { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .final-guide .desktop-jump.is-entering { animation: none; } }

/* ===== Chapter 1: Getting started (3 steps) + close-window tip ===== */
.final-guide .getting-started { max-width: 1180px; margin: 56px auto 0; text-align: left; }
.final-guide .gs-eyebrow { margin: 0 0 12px; color: var(--fg-accent); font-size: 12px; font-weight: 500; letter-spacing: .22em; }
.final-guide .gs-title { margin: 0 0 32px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  background: var(--fg-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.final-guide .gs-steps { counter-reset: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.final-guide .gs-step { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.final-guide .gs-step:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: calc(28% - 10px); color: rgba(157,180,255,.6); font-size: 16px; }
.final-guide .gs-shot { display: block; width: 100%; cursor: zoom-in; font: inherit; color: inherit; text-align: inherit; transition: transform .35s var(--fg-ease), border-color .3s; }
.final-guide .gs-shot:hover { transform: translateY(-3px); border-color: rgba(157,180,255,.45) !important; }
.final-guide .gs-shot img { display: block; width: 100%; height: auto; border-radius: var(--frame-inner); }
.final-guide .gs-copy { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; padding-inline: 4px; }
.final-guide .gs-num { color: var(--fg-accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.final-guide .gs-copy h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--fg-text); }
.final-guide .gs-copy p { grid-column: 2; margin: 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.75; }
.final-guide .gs-download-link { display: inline-block; padding: 0 7px; border: 1px solid var(--fg-accent); border-radius: 6px; background: rgba(157,180,255,.12); color: var(--fg-accent); font-weight: 600; line-height: 1.5; text-decoration: none; vertical-align: baseline; }
.final-guide .gs-download-link:hover, .final-guide .gs-download-link:focus-visible { background: rgba(157,180,255,.24); color: var(--fg-text); }
.final-guide .gs-download-link:active { background: rgba(157,180,255,.34); }
.final-guide #download { scroll-margin-top: calc(var(--fg-header) + 24px); }
.final-guide .gs-arrive { display: flex; align-items: center; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--fg-line); color: var(--fg-text); font-size: 16px; font-weight: 500; }
.final-guide .gs-arrive + * { margin-top: 0; }
.final-guide .getting-started + #nas-desktop { margin-top: 24px; }

.final-guide .close-tip { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); max-width: 1180px; margin: 40px auto 0; padding: 28px clamp(20px, 3vw, 40px);
  border: 1px solid var(--fg-line); border-radius: 22px; background: var(--fg-card); box-shadow: var(--fg-shadow); text-align: left; }
.final-guide .close-tip-copy h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.final-guide .close-tip-copy p:last-child { margin: 0; max-width: 52ch; color: var(--fg-muted); font-size: 15px; line-height: 1.75; }
.final-guide .close-tip-art { position: relative; flex: none; width: 220px; height: 132px; }
.final-guide .ct-window { position: absolute; inset: 14px 0 0 14px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #c9d6f5, #93a9e6 55%, #6f7fe0); box-shadow: 0 18px 40px -16px rgba(80,100,255,.6); }
.final-guide .ct-bar { display: flex; gap: 7px; padding: 12px 12px 0; }
.final-guide .ct-dot { width: 12px; height: 12px; border-radius: 50%; }
.final-guide .ct-red { background: #ff5f57; } .final-guide .ct-yellow { background: #febc2e; } .final-guide .ct-green { background: #28c840; }
.final-guide .ct-body { display: grid; gap: 8px; padding: 18px 16px; }
.final-guide .ct-body i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); }
.final-guide .ct-body i:nth-child(2) { width: 72%; } .final-guide .ct-body i:nth-child(3) { width: 48%; }
.final-guide .ct-pointer { position: absolute; left: 14px; top: 14px; }
.final-guide .ct-ring { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,95,87,.35); animation: ct-pulse 2s ease-out infinite; }
.final-guide .ct-label { position: absolute; left: -14px; top: -14px; transform: translate(-100%, -40%); padding: 3px 10px; border-radius: 999px; background: #ff5f57; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.final-guide .ct-label { left: 34px; top: -6px; transform: translateY(-100%); }
@keyframes ct-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,95,87,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255,95,87,0); } }

@media (max-width: 900px) {
  .final-guide .gs-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .final-guide .gs-step:not(:last-child)::after { content: none; }
  .final-guide .close-tip { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .final-guide .ct-ring { animation: none; } }
/* equalize step image heights (boot screen is black, so letterboxing is invisible) */
.final-guide .gs-shot img { aspect-ratio: 2000 / 1166; object-fit: contain; background: #000; }
.final-guide .gs-step:nth-child(n+2) .gs-shot img { object-fit: cover; }
.final-guide .ct-label { left: 38px; top: 7px; transform: none; }
.final-guide .ct-label::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: #ff5f57; transform: translateY(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.final-guide .gs-shot img { aspect-ratio: 2000 / 1166 !important; height: auto !important; object-fit: contain !important; }
.final-guide .gs-step:nth-child(n+2) .gs-shot img { object-fit: cover !important; }
.final-guide .ct-label { left: -4px; top: -34px; }
.final-guide .ct-label::before { left: 14px; top: auto; bottom: -4px; transform: rotate(45deg); }
.final-guide .close-tip-art { margin-top: 18px; }
/* Image viewer: always fit-to-window; hide the Fit / Actual pixels toggle */
.final-guide #viewer-fit, .final-guide #viewer-pixels { display: none !important; }

/* ===== Image loading: shimmer skeleton until the web image arrives, then fade in =====
   .web-img / .is-loaded are set by js/responsive-images.js */
.final-guide img.web-img { opacity: 0; transition: opacity .5s ease; }
.final-guide img.web-img.is-loaded { opacity: 1; }
.final-guide :is(.screenshot-frame, .mc-trim, .desktop-window-image-wrap, #nas-desktop) { position: relative; }
.final-guide :is(.screenshot-frame, .mc-trim, .desktop-window-image-wrap):has(> img.web-img:not(.is-loaded))::after,
.final-guide #nas-desktop:has(> img.desktop-wallpaper.web-img:not(.is-loaded))::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: var(--frame-pad, 0); border-radius: var(--frame-inner, 12px);
  background:
    linear-gradient(100deg, transparent 20%, rgba(157,180,255,.10) 45%, rgba(255,255,255,.16) 50%, rgba(157,180,255,.10) 55%, transparent 80%) 0 0 / 250% 100% no-repeat,
    linear-gradient(160deg, #161a26, #10121a);
  animation: fg-shimmer 1.6s ease-in-out infinite;
}
.final-guide .mc-trim:has(> img.web-img:not(.is-loaded))::after { inset: 0; }
.final-guide #nas-desktop:has(> img.desktop-wallpaper.web-img:not(.is-loaded))::after { inset: 0; border-radius: inherit; }
/* keep a sensible box while an image without width/height attributes is loading */
.final-guide .screenshot-frame:has(> img.web-img:not(.is-loaded)) { min-height: 160px; }
@keyframes fg-shimmer { from { background-position: 125% 0, 0 0; } to { background-position: -125% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .final-guide img.web-img { transition: none; }
  .final-guide :is(.screenshot-frame, .mc-trim, .desktop-window-image-wrap, #nas-desktop)::after { animation: none !important; }
}
