
/* SCHEECloud TTS V2.3.4：本頁僅接入全站共用三聲線播放器 */
#schTtsSection{position:relative;z-index:20;box-sizing:border-box;width:min(940px,calc(100% - 32px));margin:0 auto;padding:15px clamp(18px,5.3vw,56px) 16px;background:var(--paper,#fffdf8);border:1px solid #e6d9c9;border-radius:0 0 15px 15px;box-shadow:0 9px 26px rgba(40,28,20,.08)}
#schTtsSection .sch-tts-modebar{margin:0}
#schTtsSection .sch-tts-panel{margin:13px 0 0}
#schTtsSection .sch-tts-modebar__label{font-weight:900;color:var(--accent,#3a2a22)}
#schTtsSection .sch-tts-mode-switch{display:flex;flex-wrap:wrap;gap:9px;margin:9px 0}
#schTtsSection .sch-tts-mode-btn{min-height:42px;cursor:pointer;border-radius:10px;padding:9px 14px;border:1px solid #d9cbbd;background:#fbf6ef;color:#3a2a22;font-weight:900;font-size:15px}
#schTtsSection .sch-tts-mode-btn.active{border-color:#966d31;background:#352820;color:#fffaf0}
#schTtsSection .sch-tts-modebar__hint{color:#716258;font-size:13px;line-height:1.6}
#schTtsSection .sch-tts-panel{display:none}
body.sch-tts-mode-listening #schTtsSection .sch-tts-panel{display:block}
#schTtsSection button:focus-visible,#schTtsSection select:focus-visible{outline:3px solid #c9962e;outline-offset:2px}
#schTtsSection .sch-tts-panel__intro{line-height:1.65}
#schTtsSection button,#schTtsSection select{font-family:inherit}
@media(max-width:720px){#schTtsSection{width:100%;padding:14px 20px 16px;border-left:0;border-right:0;border-radius:0}#schTtsSection .sch-tts-mode-btn{flex:1}}


/* 預製 Neural MP3 未就緒時的獨立瀏覽器語音備援；不覆寫 /TTS_JS 共用程式 */
#schTtsBrowserFallback{margin:16px 0 0;padding:0;border:1px solid #d2b990;border-radius:14px;background:#fff8eb;color:#44342b;overflow:hidden}
#schTtsBrowserFallback summary{padding:13px 16px;font-weight:900;font-size:15px;cursor:pointer;line-height:1.55}
#schTtsBrowserFallback summary:focus-visible{outline:3px solid #b47d21;outline-offset:-3px}
#schTtsBrowserFallback .sch-bt-body{padding:4px 16px 16px}
#schTtsBrowserFallback .sch-bt-intro,#schTtsBrowserFallback .sch-bt-status{font-size:13px;line-height:1.75;color:#705c4c;margin:8px 0 12px}
#schTtsBrowserFallback .sch-bt-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
#schTtsBrowserFallback button,#schTtsBrowserFallback select{border-radius:9px;border:1px solid #c8b5a1;padding:9px 12px;min-height:42px;background:#fffdf8;color:#38291f;font-size:14px;font-weight:800;cursor:pointer}
#schTtsBrowserFallback button.sch-bt-primary{background:#3a2a22;color:#fff;border-color:#3a2a22}
#schTtsBrowserFallback button:disabled{opacity:.48;cursor:not-allowed}
#schTtsBrowserFallback label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800}
#schTtsBrowserFallback select{max-width:100%;font-weight:600}
#schTtsBrowserFallback input[type=range]{display:block;width:100%;accent-color:#795124;cursor:pointer}
#schTtsBrowserFallback .sch-bt-status{min-height:22px;margin-bottom:0}
#schTtsBrowserFallback .sch-bt-counter{font-size:12px;color:#735e4b;font-weight:700}
#schTtsBrowserFallback .sch-bt-voice-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
body.sch-tts-mode-listening [data-tts-seg].sch-bt-active{background:linear-gradient(transparent 45%,#f1d57e 45%);border-radius:3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media(max-width:720px){#schTtsBrowserFallback .sch-bt-controls button{flex:1 1 38%}#schTtsBrowserFallback .sch-bt-voice-row select{width:100%}}
@media print{#schTtsBrowserFallback{display:none}}


/* SCHEECloud 1151017｜TTS V2.3.4 頁面專屬：維持原稿排版和 small 梗圖 */
.article #schTtsSection{width:100%;max-width:none;margin:0;box-shadow:none;border-radius:0;border-left:0;border-right:0;border-top:0;padding:16px clamp(20px,5.2vw,72px);background:var(--paper,#fffdf8)}
#schTtsSection .sch-tts-panel__title{font-size:19px;font-weight:900;color:var(--accent,#3a2a22)}
#schTtsSection .sch-tts-row,#schTtsSection .sch-tts-transport{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0}
#schTtsSection .sch-tts-row button,#schTtsSection .sch-tts-row select,#schTtsSection .sch-tts-transport button{padding:8px 11px;min-height:39px;border-radius:9px;border:1px solid #d1bba1;background:#fffaf2;color:#38291f;font-size:14px;cursor:pointer}
#schTtsSection .sch-tts-row button:disabled,#schTtsSection .sch-tts-transport button:disabled{opacity:.5;cursor:not-allowed}
#schTtsSection #schTtsPlay{font-weight:900;color:#fff7e7;background:#3a2a22}
#schTtsSection #schTtsProgress{display:block;width:100%;accent-color:#986b2e;margin:8px 0}
#schTtsSection .sch-tts-time{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#695749}
#schTtsSection .sch-tts-status,#schTtsSection .sch-tts-hint{font-size:13px;line-height:1.7;color:#685745}
#schTtsSection .sch-tts-resume{display:none;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0;font-size:13px}
#schTtsSection .sch-tts-now{font-size:13px;color:#5c4b40}
#main-content [data-tts-seg].sch-tts-highlight,.hero [data-tts-seg].sch-tts-highlight{background:linear-gradient(transparent 28%,#f4d979 28%,#f4d979 92%,transparent 92%);outline:2px solid #d3a442;outline-offset:1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#main-content [data-tts-seg].sch-tts-clickable,.hero [data-tts-seg].sch-tts-clickable{cursor:pointer}
#main-content .line-record .message.sch-tts-highlight{background:#fff1a7;outline-offset:4px}
#main-content .line-record .meta.sch-tts-highlight{background:#f5dc89}
@media(max-width:720px){.article #schTtsSection{padding:13px 18px 15px}#schTtsSection .sch-tts-mode-btn{flex:1;min-width:130px}#schTtsSection .sch-tts-row button{flex:1 1 35%}}
@media print{#schTtsSection{display:none!important}#main-content [data-tts-seg].sch-tts-highlight{background:transparent!important;outline:none!important}}


/* 把愛傳下去：與原生活筆記版心保持一致，保留 small 圖片 */
#schTtsSection{max-width:860px;width:100%;background:#fffcf6;font-family:system-ui,"Microsoft JhengHei",sans-serif;}
#schTtsSection .sch-tts-panel__title{font-size:19px;font-weight:850;color:#624c2e}
#schTtsSection .sch-tts-row,#schTtsSection .sch-tts-transport{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:14px 0}
#schTtsSection .sch-tts-row button,#schTtsSection .sch-tts-row select,#schTtsSection .sch-tts-transport button{padding:8px 11px;min-height:42px;border-radius:9px;border:1px solid #d1bba1;background:#fffaf2;color:#38291f;font-size:14px;cursor:pointer}
#schTtsSection .sch-tts-row button:disabled,#schTtsSection .sch-tts-transport button:disabled{opacity:.50;cursor:not-allowed}
#schTtsSection #schTtsPlay{font-weight:800;color:#fff7e7;background:#3a2a22}
#schTtsSection #schTtsProgress{display:block;width:100%;accent-color:#986b2e;margin:8px 0}
#schTtsSection .sch-tts-time{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#695749}
#schTtsSection .sch-tts-status,#schTtsSection .sch-tts-hint{font-size:13px;line-height:1.7;color:#685745}
#schTtsSection .sch-tts-resume{display:none;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0;font-size:13px}
#schTtsSection .sch-tts-now{font-size:13px;color:#5c4b40}
#main-content [data-tts-seg].sch-tts-highlight,header [data-tts-seg].sch-tts-highlight{background:linear-gradient(transparent 28%,#f4d979 28%,#f4d979 92%,transparent 92%);outline:2px solid #d3a442;outline-offset:1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#main-content [data-tts-seg].sch-tts-clickable,header [data-tts-seg].sch-tts-clickable{cursor:pointer}
#main-content [data-tts-seg]:focus-visible{outline:3px solid #b78a41;outline-offset:3px}
@media(max-width:600px){#schTtsSection{border-left:0;border-right:0;border-radius:0;padding:13px 18px 15px}#schTtsSection .sch-tts-mode-btn{flex:1;min-width:120px}#schTtsSection .sch-tts-row button{flex:1 1 35%}}
@media print{#schTtsSection{display:none!important}#main-content [data-tts-seg].sch-tts-highlight{background:transparent!important;outline:none!important}}

/* 指控與證據第一篇：版心與聆聽反白覆寫 */
#schTtsSection{max-width:none;width:100%;margin:0;border-radius:0;border-left:0;border-right:0;font-family:system-ui,"Microsoft JhengHei",sans-serif}
.article #schTtsSection{padding:16px clamp(20px,5.2vw,66px)}
#main-content [data-tts-seg].sch-tts-highlight,.hero [data-tts-seg].sch-tts-highlight{background:linear-gradient(transparent 32%,#f4d979 32%,#f4d979 95%,transparent 95%);outline:2px solid #d3a442;outline-offset:1px}
#main-content [data-tts-seg].sch-tts-clickable{cursor:pointer}
@media(max-width:720px){.article #schTtsSection{padding:13px 18px 15px}}


/* 2026-10-23 語音最新整合：保留重建播放器時不被清除的瀏覽器備援 */
body:not(.sch-tts-mode-listening) #schTtsBrowserFallback{display:none!important}
#schTtsSection > #schTtsBrowserFallback{margin:16px 0 0}
/* 未發布的下一篇是預告卡片，不是無效連結 */
.article-end-nav .nav-planned{display:block;min-width:0;padding:20px;border:1px solid var(--line,#d7c8b5);border-radius:16px;background:#f3eee7;box-sizing:border-box;color:#55493e}
.article-end-nav .nav-planned>span{display:block;font-size:14px;color:var(--muted,#78695d)}
.article-end-nav .nav-planned>strong{display:block;line-height:1.6;font-weight:850}
