/* 官網下載頁（download.html）：色票、字體、頂列與按鈕沿用 site.css，這裡只放下載頁自己的版面。
 * 風格延續開場片頭：HUD 四角框線、時間碼、顆粒、琥珀播放頭；兩個平台是時間軸上的片段，第一次安裝是跟著播放頭走的分鏡。
 * 動畫原則同 site.css：不把內容預設成透明或隱藏；動畫的初始狀態由 js/download.js 執行時設定，CDN 載不到時整頁照樣完整。 */

.dl.site { padding-bottom: 0; }  /* 沒有章節時間軸（dock），不必留底部高度 */
.dl-top-link { margin-left: auto; }
.dl .topbar .brand { margin-right: 0; }
.dl .topbar-tag { margin-left: 4px; }

/* ---------- 片頭：HUD ---------- */
.dl-hero { position: relative; isolation: isolate; margin-inline: calc(var(--gutter) * -1); padding: clamp(64px, 11vh, 120px) calc(var(--gutter) + clamp(8px, 2vw, 28px)) clamp(56px, 9vh, 96px); overflow: hidden;
  background: radial-gradient(ellipse 70% 62% at 26% 30%, #1b1f27 0%, var(--ink) 62%, #07080a 100%); }
.dl-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(0, 0, 0, .5) 100%); }  /* 暗角 */
.dl-hud { position: absolute; inset: 14px; z-index: 1; pointer-events: none; }
.dl-grain { position: absolute; inset: -30%; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.dl-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(224, 164, 88, .75); }
.dl-corner.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.dl-corner.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.dl-corner.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.dl-corner.br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.dl-meta { position: absolute; left: 36px; right: 36px; top: -2px; display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--mute); white-space: nowrap; }
.dl-meta b { color: var(--bone); font-weight: 700; }
.dl-meta .dl-tc { color: var(--amber); }
.dl-hero-copy, .dl-tl { position: relative; z-index: 2; max-width: 1180px; margin-inline: auto; }
.dl-rec { width: 10px; height: 10px; border-radius: 50%; background: var(--cut); box-shadow: 0 0 10px rgba(229, 72, 77, .8); }
.dl-title { margin-bottom: 18px; font-size: clamp(60px, 9.4vw, 136px); letter-spacing: .01em; }
.dl-title .char { display: inline-block; will-change: transform; }
.dl-hero .lead { max-width: 36em; }

/* ---------- 平台片段（時間軸） ---------- */
.dl-tl { margin-top: clamp(28px, 5vh, 52px); }
.dl-ruler { display: flex; justify-content: space-between; height: 24px; padding: 0 2px 6px; font-size: 11px; color: var(--faint);
  background: linear-gradient(to right, var(--line-2) 1px, transparent 1px) 0 100% / 5% 7px repeat-x, linear-gradient(to right, var(--line) 1px, transparent 1px) 0 100% / 1.25% 4px repeat-x; }
.dl-tracks { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; padding-top: 10px; }
.dl-clip { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #181b21, #121519); }
.dl-clip--win { border-color: rgba(224, 164, 88, .5); box-shadow: 0 0 0 1px rgba(224, 164, 88, .1), 0 30px 70px -34px rgba(224, 164, 88, .45); }
.dl-clip--mac { background: linear-gradient(180deg, #15181d, #111317); }
.dl-clip-bar { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-bottom: 1px solid rgba(0, 0, 0, .35); background: linear-gradient(90deg, var(--v1), #2c5a85); font-size: 12px; color: #d9e6f2; }
.dl-clip--mac .dl-clip-bar { background: repeating-linear-gradient(135deg, #1d2127 0 8px, #23272e 8px 16px); color: var(--mute); }
.dl-track { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; font-size: 11px; }
.dl-clip-name { letter-spacing: .06em; }
.dl-badge { margin-left: auto; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.dl-badge--beta { background: var(--amber); color: var(--ink); }
.dl-badge--dev { border: 1px dashed var(--line-2); color: var(--dim); }
.dl-clip-body { display: grid; align-content: start; gap: 12px; padding: clamp(20px, 2.6vw, 30px); }
.dl-os { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.dl-clip--mac .dl-os { color: var(--dim); }
.dl-req { margin: 0; font-size: 14px; color: var(--dim); }
.dl-version { min-height: 1.6em; margin: 0; font-size: 14px; letter-spacing: .02em; color: var(--amber); }
.dl-version.is-missing { color: var(--dim); font-family: var(--sans); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.dl-get { position: relative; overflow: hidden; box-shadow: 0 12px 34px -14px rgba(224, 164, 88, .85); }
.dl-get::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 50%, transparent 68%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.dl-get:hover::after, .dl-get:focus-visible::after { transform: translateX(120%); }
.dl-get-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dl-alt { font-size: 14px; color: var(--dim); text-underline-offset: 3px; }
.dl-alt:hover { color: var(--amber-hi); }
/* 手機與平板：不給下載，改請使用者在電腦上開這一頁 */
.dl.is-mobile .dl-actions, .dl.is-mobile .dl-hash, .dl.is-mobile .dl-after { display: none !important; }
.dl-mobile { display: grid; gap: 10px; padding: 16px; border: 1px dashed rgba(224, 164, 88, .55); border-radius: 12px; background: rgba(224, 164, 88, .06); }
.dl-mobile p { margin: 0; }
.dl-mobile-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--amber-hi); }
.dl-mobile-title svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dl-mobile-text { font-size: 14px; color: var(--dim); }
.dl-mobile-url { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0f1114; font-size: 13px; color: var(--bone); overflow-wrap: anywhere; }
.dl-share { justify-self: start; }
.dl-after { margin: 0; padding: 10px 12px; border: 1px solid rgba(111, 207, 151, .35); border-radius: 10px; background: rgba(111, 207, 151, .08); font-size: 14px; color: var(--bone); }
.dl-hash { font-size: 13px; color: var(--mute); }
.dl-hash summary { cursor: pointer; width: fit-content; color: var(--dim); }
.dl-hash summary:hover { color: var(--bone); }
.dl-hash-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0f1114; }
.dl-hash-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: var(--bone); }
.dl-copy { flex: none; min-height: 30px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); color: var(--bone); font: 700 12px var(--sans); cursor: pointer; }
.dl-copy:hover { border-color: var(--amber); }
.dl-hash-note { margin: 8px 0 0; line-height: 1.7; }
.dl-hash-note code { color: var(--dim); }
.dl-beta-note { margin: 4px 0 0; padding: 10px 14px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: rgba(224, 164, 88, .08); font-size: 14px; color: var(--dim); }
.dl-beta-note b { color: var(--amber-hi); }
.dl-render { position: relative; height: 36px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: #0f1114; }
.dl-render-bar { position: absolute; inset: 0 auto 0 0; width: 62%; background: repeating-linear-gradient(135deg, rgba(224, 164, 88, .3) 0 10px, rgba(224, 164, 88, .1) 10px 20px); background-size: 28.28px 28.28px; border-right: 2px solid var(--amber); }
.dl-render-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .32em; color: var(--dim); }
.dl-wave { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; height: 44px; padding: 0 10px; border: 1px solid rgba(111, 207, 151, .16); border-radius: 8px; background: rgba(111, 207, 151, .04); color: var(--mute); }
.dl-wave-bars { display: flex; align-items: center; gap: 2px; height: 30px; min-width: 0; }
.dl-wave-bars i { flex: 1 1 0; height: calc(var(--h, .4) * 100%); min-height: 2px; border-radius: 2px; background: var(--keep); opacity: .55; transform-origin: 50% 50%; }
/* 播放頭：在片段後面（z-index 0），只在尺規、片段之間與 A1 波形露出來，不擋字 */
.dl-playhead { position: absolute; z-index: 0; top: -30px; bottom: 0; left: 0; width: 2px; background: var(--amber); box-shadow: 0 0 12px rgba(224, 164, 88, .9); pointer-events: none; }
.dl-playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--amber); border-bottom: 0; }

/* ---------- 各段共用 ---------- */
.dl-section { position: relative; padding-block: clamp(72px, 12vh, 128px); border-top: 1px solid var(--line); }
.dl-inner { max-width: 1180px; margin-inline: auto; }
.dl-section .eyebrow .mono { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border: 1px solid rgba(224, 164, 88, .5); border-radius: 6px; color: var(--amber); font-size: 12px; }

/* ---------- 第一次安裝 ---------- */
.dl-guide-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sb-steps { display: grid; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: sb; }
.sb-steps li { position: relative; display: grid; gap: 4px; padding: 12px 14px 12px 58px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); counter-increment: sb; transition: border-color .3s, background-color .3s; }
.sb-steps li::before { content: counter(sb); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; font: 700 14px var(--mono); color: var(--dim); transition: all .3s; }
.sb-steps li b { font-size: 16px; }
.sb-steps li span { font-size: 14px; color: var(--dim); }
.sb-steps li code { font-size: 12px; color: var(--bone); overflow-wrap: anywhere; }
.sb-steps li.is-current { border-color: rgba(224, 164, 88, .6); background: rgba(224, 164, 88, .07); }
.sb-steps li.is-current::before { border-color: var(--amber); background: var(--amber); color: var(--ink); box-shadow: 0 0 14px rgba(224, 164, 88, .55); }

/* 分鏡播放器：螢幕依寬度縮放（container 查詢單位），文字大小跟著螢幕走 */
.sb { margin: 0; }
.sb-screen { position: relative; container-type: inline-size; aspect-ratio: 16 / 10.5; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0a0c0f; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.sb-wall { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(36, 71, 107, .55), transparent 70%), radial-gradient(ellipse 50% 60% at 18% 90%, rgba(224, 164, 88, .18), transparent 70%), linear-gradient(160deg, #10141a, #0b0d10); }
.sb-browser { position: absolute; left: 6%; top: 9%; width: 70%; height: 66%; overflow: hidden; border: 1px solid #2b3038; border-radius: 1.4cqw; background: #16191e; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .5); }
.sb-browser-bar { display: flex; align-items: center; gap: .8cqw; height: 6.5cqw; padding: 0 2cqw; background: #1e2228; border-bottom: 1px solid #2b3038; }
.sb-browser-bar i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #3a3f48; }
.sb-url { margin-left: 1.4cqw; padding: .5cqw 1.6cqw; border-radius: 99px; background: #14171b; font-size: 1.9cqw; color: var(--mute); }
.sb-page { display: grid; gap: 1.6cqw; padding: 5cqw 5cqw 0; }
.sb-page-title { font-family: var(--serif); font-weight: 900; font-size: 5cqw; color: var(--bone); }
.sb-page-line { height: 1.2cqw; width: 70%; border-radius: 99px; background: #262a31; }
.sb-page-line.short { width: 44%; }
.sb-bubble { position: absolute; right: 2.4cqw; top: 8.5cqw; display: flex; align-items: center; gap: 1.6cqw; width: 64%; padding: 1.8cqw 2cqw; border: 1px solid #353b44; border-radius: 1.2cqw; background: #22262d; box-shadow: 0 1.6cqw 4cqw rgba(0, 0, 0, .45); }
.sb-file { flex: none; width: 4cqw; height: 5cqw; border-radius: .5cqw; background: linear-gradient(180deg, #3d6a95, #24476b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.sb-bubble-text { display: grid; min-width: 0; font-size: 1.9cqw; line-height: 1.35; color: var(--mute); }
.sb-bubble-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--bone); }
.sb-open { margin-left: auto; flex: none; padding: .6cqw 1.4cqw; border-radius: .8cqw; background: rgba(117, 180, 226, .16); font-size: 1.9cqw; font-weight: 700; color: #9fd0f5; }
/* SmartScreen（示意）：Windows 的藍色對話框 */
.sb-ss { position: absolute; left: 50%; top: 50%; width: 66%; padding: 4cqw 4.4cqw 3.4cqw; border: 1px solid rgba(255, 255, 255, .18); background: #0a5fb4; box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, .55); color: #fff; transform: translate(-50%, -50%); font-family: "Segoe UI", var(--sans); }
.sb-ss-title { margin: 0 0 2.2cqw; font-size: 4.2cqw; font-weight: 300; line-height: 1.2; }
.sb-ss-body { margin: 0; font-size: 2cqw; line-height: 1.6; opacity: .95; }
.sb-ss-more { margin: 1.8cqw 0 0; font-size: 2cqw; }
.sb-ss-more span { display: inline-block; text-decoration: underline; text-underline-offset: .4cqw; }
.sb-ss-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6cqw 1.4cqw; margin: 2cqw 0 0; font-size: 2cqw; }
.sb-ss-info dt { opacity: .85; }
.sb-ss-info dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-ss-actions { display: flex; justify-content: flex-end; gap: 1.4cqw; margin-top: 3.4cqw; }
.sb-btn { min-width: 15cqw; padding: .9cqw 2.4cqw; border: 2px solid rgba(255, 255, 255, .9); font-size: 2cqw; text-align: center; }
.sb-run { background: rgba(255, 255, 255, .14); }
/* 安裝程式 */
.sb-setup { position: absolute; left: 50%; top: 50%; width: 58%; padding: 3.4cqw 3.8cqw; border: 1px solid #2f343d; border-radius: 1.4cqw; background: #181b20; box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, .6); transform: translate(-50%, -50%); }
.sb-setup-title { display: flex; align-items: center; gap: 1.4cqw; margin: 0 0 3cqw; font-size: 2.4cqw; font-weight: 700; color: var(--bone); }
.sb-setup-title svg { width: 3.6cqw; height: 3.6cqw; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sb-progress { height: 1.4cqw; overflow: hidden; border-radius: 99px; background: #2a2f37; }
.sb-progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--amber-hi)); transform-origin: 0 50%; }
.sb-setup-state { margin: 2cqw 0 0; font-size: 2cqw; color: var(--keep); }
/* 游標、點擊漣漪、重點框 */
.sb-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 4.2cqw; height: 4.2cqw; fill: #fff; stroke: #0b0d10; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 .5cqw .8cqw rgba(0, 0, 0, .55)); pointer-events: none; }
.sb-click { position: absolute; left: 0; top: 0; z-index: 5; width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; border: .5cqw solid var(--amber); border-radius: 50%; opacity: 0; pointer-events: none; }
.sb-ring { position: absolute; left: 0; top: 0; z-index: 4; width: 10cqw; height: 5cqw; border: .45cqw solid var(--amber); border-radius: 1cqw; box-shadow: 0 0 2.4cqw rgba(224, 164, 88, .7); opacity: 0; pointer-events: none; }
.sb-corner { position: absolute; z-index: 7; width: 3cqw; height: 3cqw; border: .35cqw solid rgba(224, 164, 88, .7); }
.sb-corner.tl { left: 1.8cqw; top: 1.8cqw; border-right: 0; border-bottom: 0; }
.sb-corner.tr { right: 1.8cqw; top: 1.8cqw; border-left: 0; border-bottom: 0; }
.sb-corner.bl { left: 1.8cqw; bottom: 1.8cqw; border-right: 0; border-top: 0; }
.sb-corner.br { right: 1.8cqw; bottom: 1.8cqw; border-left: 0; border-top: 0; }
.sb-meta { position: absolute; z-index: 7; left: 6.4cqw; right: 6.4cqw; top: 1.5cqw; display: flex; justify-content: space-between; margin: 0; font-size: 1.7cqw; letter-spacing: .14em; color: var(--mute); }
.sb-meta span:last-child { color: var(--amber); }
.sb-cap { position: absolute; z-index: 7; left: 50%; bottom: 3.6cqw; max-width: 86%; margin: 0; padding: .8cqw 2.2cqw; border-radius: .8cqw; background: rgba(8, 9, 11, .78); transform: translateX(-50%); font-size: 2.6cqw; font-weight: 700; line-height: 1.4; text-align: center; color: #fff; }
/* 窄螢幕（手機）：螢幕裡的字依寬度等比縮小會小到看不清，窄的時候放大對話框與文字 */
@container (max-width: 520px) {
  .sb-ss { width: 90%; padding: 4.6cqw 5cqw 4cqw; }
  .sb-ss-title { margin-bottom: 2.6cqw; font-size: 5.6cqw; }
  .sb-ss-body { font-size: 3cqw; line-height: 1.5; }
  .sb-ss-more, .sb-ss-info, .sb-btn { font-size: 3.3cqw; }
  .sb-btn { min-width: 21cqw; padding: 1.2cqw 2.6cqw; }
  .sb-browser { left: 5%; width: 90%; height: 70%; }
  .sb-bubble { width: 86%; top: 10cqw; }
  .sb-bubble-text, .sb-open { font-size: 3cqw; }
  .sb-url { font-size: 2.6cqw; }
  .sb-page-title { font-size: 6.4cqw; }
  .sb-setup { width: 82%; }
  .sb-setup-title { font-size: 3.6cqw; }
  .sb-setup-state { font-size: 3.2cqw; }
  .sb-cap { bottom: 3cqw; font-size: 3.7cqw; }
  .sb-meta { font-size: 2.5cqw; }
  .sb-cursor { width: 6.4cqw; height: 6.4cqw; }
}
/* 沒有動畫時（CDN 載不到、減少動態、JS 還沒執行）：只畫最關鍵的一格——展開後的 SmartScreen，兩個要按的地方框起來 */
.sb:not(.is-live) .sb-browser, .sb:not(.is-live) .sb-setup, .sb:not(.is-live) .sb-cursor, .sb:not(.is-live) .sb-click, .sb:not(.is-live) .sb-ring,
.sb:not(.is-live) .sb-controls { display: none; }
.sb:not(.is-live) [data-sb-more], .sb:not(.is-live) .sb-run { box-shadow: 0 0 0 .45cqw var(--amber), 0 0 2.4cqw rgba(224, 164, 88, .7); }
.sb:not(.is-live) [data-sb-more] { padding: .2cqw .6cqw; border-radius: .6cqw; }
/* 控制列：播放／暫停與四格時間軸（點一格就跳過去） */
.sb-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 12px; }
.sb-play { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); color: var(--bone); cursor: pointer; }
.sb-play:hover { border-color: var(--amber); }
.sb-play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sb-play .sb-i-play { display: none; fill: currentColor; }
.sb-play[aria-pressed="false"] .sb-i-pause { display: none; }
.sb-play[aria-pressed="false"] .sb-i-play { display: block; }
.sb-tl { position: relative; }
.sb-seek { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.sb-seek button { width: 100%; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #121519; color: var(--mute); font: 500 13px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.sb-seek button:hover { color: var(--bone); border-color: var(--line-2); }
.sb-seek button[aria-current="step"] { border-color: rgba(224, 164, 88, .6); background: rgba(224, 164, 88, .1); color: var(--bone); }
.sb-head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--amber); box-shadow: 0 0 10px rgba(224, 164, 88, .9); pointer-events: none; }
.sb:not(.is-live) .sb-head { display: none; }
.sb-note { margin: 10px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- 安心使用 ---------- */
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.dl-card { position: relative; padding: 24px 24px 22px 76px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.dl-card-icon { position: absolute; left: 22px; top: 24px; width: 34px; height: 34px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl-card h3 { margin: 0 0 6px; font-size: 18px; }
.dl-card p { margin: 0; font-size: 15px; color: var(--dim); }

/* ---------- 之後的更新：程式上方的更新通知（示意） ---------- */
.dl-updates-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.up-window { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #18191b; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); font-size: 13px; }
.up-titlebar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #202124; border-bottom: 1px solid #08090b; color: #d7d8da; }
.up-titlebar svg { width: 20px; height: 20px; fill: none; stroke: #51c4b0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.up-ver { margin-left: auto; padding: 1px 8px; border: 1px solid #4b4d53; border-radius: 4px; font-size: 12px; color: #b6b8be; }
.up-banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; overflow: hidden; background: #1e2f3f; border-bottom: 1px solid #2d4a63; color: #e1eef9; }
.up-text { margin-right: auto; font-weight: 700; }
.up-link { color: #8db6d8; text-decoration: underline; text-underline-offset: 3px; }
.up-go { padding: 4px 12px; border: 1px solid #3fa56f; border-radius: 4px; background: #2f8a5b; color: #fff; font-weight: 700; }
.up-later { padding: 4px 10px; border: 1px solid #44464c; border-radius: 4px; background: #303236; color: #d7d8da; }
.up-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--keep); transform: scaleX(0); transform-origin: 0 50%; }
.up-work { display: grid; gap: 6px; padding: 18px 14px 20px; }
.up-lane { display: flex; gap: 3px; height: 26px; }
.up-lane i { width: var(--w); border-radius: 3px; background: #355f7c; }
.up-lane.a i { background: #386f52; }

/* ---------- 常見問題 ---------- */
.dl-faq-inner { max-width: 880px; }
.dl-faq details { border-bottom: 1px solid var(--line); }
.dl-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--mono); color: var(--amber); transition: transform .25s; }
.dl-faq details[open] summary::after { transform: rotate(45deg); }
.dl-faq details p { margin: 0 0 18px; color: var(--dim); }
.dl-faq .site-foot { max-width: 1180px; }
.dl-faq .site-foot a { color: var(--mute); }

/* ---------- 動態（系統沒設減少動態時） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dl-grain { animation: dl-grain .5s steps(3) infinite; }
  .dl-rec { animation: dl-rec 1.6s ease-in-out infinite; }
  .dl-render-bar { animation: dl-stripes 1.1s linear infinite, dl-render 5.5s ease-in-out infinite; }
  .dl-render-label { animation: dl-blink 2.2s steps(2, jump-none) infinite; }
  .dl-wave-bars.is-live i { animation: dl-level 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1s); }
  .dl-get { animation: dl-glow 3.6s ease-in-out infinite; }
}
@keyframes dl-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
@keyframes dl-rec { 50% { opacity: .35; } }
@keyframes dl-stripes { to { background-position: 28.28px 0; } }
@keyframes dl-render { 0%, 100% { width: 38%; } 50% { width: 74%; } }
@keyframes dl-blink { 50% { opacity: .45; } }
@keyframes dl-level { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }
@keyframes dl-glow { 0%, 100% { box-shadow: 0 12px 34px -14px rgba(224, 164, 88, .85); } 50% { box-shadow: 0 14px 44px -10px rgba(224, 164, 88, 1); } }

/* 列印：動畫中途的透明與位移一律還原，內容全部印出來 */
@media print {
  .dl * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .dl-hud, .dl-playhead, .sb-cursor, .sb-click, .sb-ring { display: none !important; }
  .sb-ss, .sb-setup { transform: translate(-50%, -50%) !important; }  /* 分鏡裡的對話框靠位移置中 */
}

/* ---------- 平板與手機 ---------- */
@media (max-width: 1023.98px) {
  .dl-guide-grid, .dl-updates-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-guide-grid .sb { order: -1; }  /* 手機先看分鏡，再看文字步驟 */
  .dl-guide-copy .sb-steps { margin-top: 20px; }
}
@media (max-width: 860px) {
  .dl-tracks { grid-template-columns: minmax(0, 1fr); }
  .dl-playhead, .dl-ruler { display: none; }  /* 片段直向排列時沒有橫向時間軸可掃 */
  .dl-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .dl-top-link { display: none; }
  .dl .topbar .btn-solid { margin-left: auto; }
  .dl-meta { left: 30px; right: 30px; font-size: 11px; letter-spacing: .08em; }
  .dl-meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .dl-card { padding: 20px 18px 18px 64px; }
  .dl-card-icon { left: 16px; top: 20px; width: 30px; height: 30px; }
  .sb-seek button { font-size: 12px; padding: 6px 4px; }
}
@media (max-width: 560px) {
  .sb-screen { aspect-ratio: 4 / 3.5; }  /* 手機的螢幕高一點，放得下放大後的對話框 */
}
@media (max-width: 420px) {
  .dl-actions .btn-lg { width: 100%; }
  .sb-seek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-head { display: none; }  /* 跳格鈕排成兩列時，橫向的播放頭沒有意義 */
}
