/* WORLD DAILY · v3-next（新版的舒適度與閱讀流暢度覆寫，2026-11-13 預覽）
   原則：降低對比與線條重量、固定閱讀節奏、動作只用 transform/opacity。 */
:root{--ground:#fbf9f5;--ink:#1d1b18;--ink2:#6b665e;--field:#f2eee7;--rule:#ddd7cc;--red:#b3261e}
@media (prefers-color-scheme:dark){:root{--ground:#141312;--ink:#e7e2d9;--ink2:#9d978c;--field:#1f1d1a;--rule:#35322d;--red:#ff7a6b}}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{line-break:strict;text-autospace:normal;font-kerning:normal;-webkit-font-smoothing:antialiased}
::selection{background:color-mix(in srgb,var(--red) 22%,transparent)}

/* 線條：6px 黑線改成細線，視線不被切斷 */
.bar::after{height:1px!important;background:var(--rule)!important}
.paper,.more,.archive,.edition-footer{border-top:1px solid var(--rule)!important}
.reading-tools{border-top:0!important;border-bottom:1px solid var(--rule)}
.bcat li,.radar-item{border-top:1px solid var(--rule)!important}

/* 首頁節奏 */
.bar nav a{padding:14px 2px}
.dateline{padding:20px 0 16px}
.st{margin:0 0 30px!important;padding-bottom:30px;border-bottom:1px solid var(--rule)}
.feed .st:last-child,.st.lead{border-bottom:0;padding-bottom:0}
.st.lead{margin-bottom:34px!important}
.st.lead .ph img{aspect-ratio:3/2!important}
.st.lead.is-live .ph img{aspect-ratio:4/5!important}
.st .tx{padding-top:16px}
.st h2,.st h3{text-wrap:balance}
.st.lead h2{font-size:clamp(26px,7vw,32px)!important;line-height:1.28!important;margin-bottom:12px}
.st h3,.feed .st h3{font-size:20px!important;line-height:1.42!important;font-weight:700!important}
.dek{font-size:16.5px!important;line-height:1.8!important;color:var(--ink);opacity:.86;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-wrap:pretty}
.meta{margin-top:10px!important}
.st figcaption{padding-top:8px;opacity:.85}
.st.plate{padding-top:0!important}
/* 三件事：數字當視覺錨點 */
.brief3{border-radius:0;margin-bottom:34px!important;padding:24px var(--gap) 14px!important}
.brief3 ol{list-style:none;padding:0!important;counter-reset:b3}
.brief3 li{counter-increment:b3;display:grid;grid-template-columns:1.6em 1fr;gap:4px;margin:0 0 12px!important;line-height:1.7}
.brief3 li::before{content:counter(b3);font:900 22px/1.25 var(--serif);color:var(--red)}
/* 其他新聞 */
.bcat li{padding:14px 0!important}
.bcat li>a{font-size:16.5px!important;font-weight:600!important;line-height:1.55!important}
.bcat li p{line-height:1.75!important;opacity:.9}
.vault summary,.archive a{min-height:48px}
/* 進場：位移縮小、時間縮短，滑動時不搶眼 */
.js .rv{transform:translateY(10px)!important}
.js .rv.on{transition:opacity .36s ease-out,transform .36s cubic-bezier(.2,.7,.2,1)!important}
.js img.wd-fade{opacity:0}.js img.wd-fade.wd-in{opacity:1;transition:opacity .3s ease-out}

/* 閱讀頁 */
.edition-head h1{margin-top:12px}
.reading-tools{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:6px 12px!important;padding-top:8px!important;padding-bottom:8px!important;transition:transform .26s cubic-bezier(.2,.8,.2,1);will-change:transform}
.reading-tools::-webkit-scrollbar{display:none}
.reading-tools .tools-group,#font-tools{flex:none!important}
.reading-tools button,.reading-tools a{flex:none;min-height:40px;display:inline-flex;align-items:center;padding:9px 9px!important;font-size:14px!important}
.reading-tools .tools-group{gap:4px!important}
.reading-tools{gap:6px 8px!important}
html.wd-reading-down .reading-tools{transform:translateY(-110%)}
.wd-progress{position:fixed;left:0;top:0;height:3px;width:100%;background:var(--red);transform-origin:0 50%;transform:scaleX(0);z-index:6;pointer-events:none}
.overview li{line-height:1.75}
.story{margin:0 0 40px!important;padding-bottom:36px;border-bottom:1px solid var(--rule)}
.story h2{text-wrap:balance;line-height:1.3!important;margin-bottom:12px!important}
.story .kicker{margin-bottom:16px!important}
.story-body p{line-height:1.95!important;margin:0 0 1.3em!important;text-align:justify;text-justify:inter-character;letter-spacing:0}
/* 中文內文左右對齊：每行排滿，行尾不再參差（2026-11-14 讀者回饋） */
.overview li,.dek{text-align:justify;text-justify:inter-character}
html[lang=en] .story-body p{line-height:1.72!important;letter-spacing:0;font-family:Georgia,"Times New Roman",serif;text-align:left;text-justify:auto;hyphens:auto;-webkit-hyphens:auto;text-wrap:pretty}
html[lang=en] .overview li,html[lang=en] .dek{text-align:left}
.story figure{margin-bottom:22px!important}
.sources{font-size:13px!important;gap:2px 10px!important;opacity:.9;padding-top:4px}
.sources a{text-decoration:none!important;border-bottom:1px solid var(--rule)}
.story-back{min-height:40px;display:inline-flex!important;align-items:center}
@media (prefers-reduced-motion:reduce){.reading-tools{transition:none}.js img.wd-fade{opacity:1}}

/* 滑動閱讀入口與已讀狀態 */
.wd-flow-cta{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin:0 0 18px;padding:13px 16px 15px;min-height:60px;background:var(--ink);color:var(--ground);text-decoration:none;overflow:hidden}
.wd-flow-play{width:34px;height:34px;border-radius:50%;background:var(--ground);position:relative}
.wd-flow-play::after{content:"";position:absolute;left:13px;top:10px;border:7px solid transparent;border-left:11px solid var(--ink);border-right:0}
.wd-flow-t{display:grid;gap:1px}.wd-flow-t b{font:900 17px/1.3 var(--serif)}.wd-flow-t i{font-style:normal;font-size:13px;opacity:.75}
.wd-flow-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:color-mix(in srgb,var(--ground) 20%,transparent)}
.wd-flow-bar span{display:block;height:100%;background:var(--red);transform-origin:0 50%}
.st.wd-read h2,.st.wd-read h3,.st.wd-read .dek{opacity:.5}

/* 品牌標誌 World Daily.（2026-11-14）：英文為主，中文縮小 */
.wd-b .wd-wm{display:block;height:var(--wd-h,30px);width:auto;color:inherit;overflow:visible}
.wd-b a{display:inline-block;color:inherit;text-decoration:none}
.wd-dot{fill:#6B1F1C}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .wd-dot{fill:#B8965A}}
:root[data-theme="dark"] .wd-dot{fill:#B8965A}
.wd-zh{margin:4px 0 0!important;font-size:12px!important;line-height:1.2!important;letter-spacing:.42em!important;font-weight:500!important;opacity:.62;text-indent:.1em}
.mark.wd-b{align-items:center;gap:10px}
.mark.wd-b span{display:inline!important;font-size:11px;letter-spacing:.3em;opacity:.6}
.edition-head .brand.wd-b{--wd-h:32px;margin:14px 0 0!important;display:block!important}
.edition-head .subtitle.wd-zh{display:block!important}
.brand.wd-b a::before{content:none!important}.brand.wd-b a{font-size:inherit!important}

/* ══ 新版報刊風（成威 2026-11-14 同意：以 logo 為雛形）══
   規則：象牙紙＋墨黑＋單一強調色；細線不用卡片；句點＝目前位置；Bodoni 只給數字與英文。 */
@font-face{font-family:"WD Bodoni";src:url(/assets/wd-bodoni.woff2) format("woff2");font-weight:400 700;font-display:swap}
:root{--ground:#F3EEE4;--ink:#14110F;--ink2:#6F685E;--field:#EAE4D8;--rule:rgba(20,17,15,.16);--red:#6B1F1C;--bod:"WD Bodoni","Bodoni Moda",Didot,"Times New Roman",serif}
@media (prefers-color-scheme:dark){:root{--ground:#14110F;--ink:#F3EEE4;--ink2:#A69F93;--field:#1E1A17;--rule:rgba(243,238,228,.18);--red:#B8965A}}
body{background:var(--ground)}
.bar::after{background:var(--ink)!important}
.bar nav a{font-size:14px;letter-spacing:.04em}
/* 日期：大號數字 */
.dateline{align-items:flex-end!important;gap:4px 14px!important;padding:18px 0 14px!important;border-bottom:1px solid var(--rule);margin-bottom:16px}
.dateline .wd-d{font:500 46px/.9 var(--bod);letter-spacing:-.01em;color:var(--ink)}
.dateline.wd-on time{font:500 13px/1.5 inherit!important;letter-spacing:.08em;color:var(--ink2)!important;display:block}
.dateline.wd-on>span:not(.wd-dw){flex:0 0 100%;font-size:12.5px;letter-spacing:.04em}
.dateline .wd-dw{display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:3px}
/* 滑動閱讀入口：細框一列 */
.wd-flow-cta{background:transparent!important;color:var(--ink)!important;border:1px solid var(--ink);min-height:54px!important;padding:10px 16px!important;grid-template-columns:1fr auto!important}
.wd-flow-cta .wd-flow-play{display:none}
.wd-flow-cta .wd-flow-t{display:flex!important;align-items:baseline;gap:12px}.wd-flow-cta .wd-flow-t b{font-size:15px}.wd-flow-cta .wd-flow-t i{font-size:12.5px;color:var(--ink2);opacity:1}
.wd-flow-cta::after{content:"Start →";font:italic 400 15px var(--bod);color:var(--ink2)}
.wd-flow-cta .wd-flow-bar{background:transparent}.wd-flow-cta .wd-flow-bar span{background:var(--red)}
/* 編號與分類 */
.st .meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:12px!important;letter-spacing:.04em;color:var(--ink2)}
.st .meta .cat{color:var(--red)!important;font-weight:700;letter-spacing:.2em;font-size:11.5px}
.st .meta .cat::before{display:none!important}
.st .tx{position:relative}
.st.lead .tx,.must .st .tx{display:flex;flex-direction:column}
.st.lead .meta,.must .st .meta{order:-1;margin:0 0 8px!important;padding-right:4.2em}
.st.lead .tx[data-n]::after,.must .st .tx[data-n]::after{content:"No. " attr(data-n);position:absolute;right:0;top:14px;font:italic 400 14px var(--bod);color:var(--ink2)}
.st.lead h2{font-weight:900}
/* 其他新聞：編號｜標題｜小圖 */
@media (max-width:899px){
 .feed .st{display:grid;grid-template-columns:34px minmax(0,1fr) 84px;gap:0 12px;align-items:start;margin:0!important;padding:16px 0!important}
 .feed .st::before{content:attr(data-n);font:400 22px/1.25 var(--bod);color:var(--ink2);grid-column:1;grid-row:1}
 .feed .st .ph{display:contents}
 .feed .st .ph img{grid-column:3;grid-row:1;width:84px;height:84px;aspect-ratio:1!important;margin:0}
 .feed .st figcaption{grid-column:2/4;grid-row:2;padding:8px 0 0!important;font-size:10.5px!important;line-height:1.4;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .feed .st .tx{grid-column:2;grid-row:1;padding-top:0!important;display:flex;flex-direction:column}
 .feed .st:not(:has(.ph)) .tx{grid-column:2/4}
 .feed .st .meta{order:-1;margin:0 0 4px!important;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .feed .st h3{text-wrap:wrap!important}.feed .st h3 .l{display:inline!important}
 .feed .st h3{font-size:17px!important;line-height:1.45!important}
 .feed .st .dek{display:none!important}
 .feed .st.plate .ph img{object-fit:cover}
}
/* 區段標題：英文小字＋一條線 */
.must::before,.feed::before{display:flex;align-items:center;gap:12px;font:500 13px/1 var(--bod);letter-spacing:.32em;color:var(--ink);margin:6px 0 18px;grid-column:1/-1}
.must::before{content:"MUST READ"}.feed::before{content:"MORE"}
.must,.feed{background:linear-gradient(var(--ink),var(--ink)) no-repeat right 12px/calc(100% - 8.6em) 1px}
.feed{background-size:calc(100% - 4.9em) 1px}
/* 三件事 */
.brief3{background:transparent!important;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);margin-left:0!important;margin-right:0!important;padding:20px 0 10px!important}
.brief3 li::before{font:500 24px/1.15 var(--bod)!important;color:var(--red)}
/* 底部文字分頁列：句點＝目前位置 */
.wd-tab{position:fixed;left:0;right:0;bottom:0;z-index:6;display:flex;justify-content:space-around;padding:0 8px env(safe-area-inset-bottom,0px);background:var(--ground);border-top:1px solid var(--ink);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
.wd-tab a{flex:1;display:flex;align-items:center;justify-content:center;min-height:50px;font:500 12px/1 var(--bod);letter-spacing:.24em;color:var(--ink2);text-decoration:none}
.wd-tab a.on{color:var(--ink);font-weight:600}.wd-tab a.on::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--red);margin-left:3px;align-self:center;transform:translateY(3px)}
html.wd-tab-down .wd-tab{transform:translateY(110%)}
body.wd-has-tab{padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
@media (min-width:900px){.wd-tab{display:none}body.wd-has-tab{padding-bottom:0}}
@media (prefers-reduced-motion:reduce){.wd-tab{transition:none}}
/* 閱讀頁同一套紙色 */
.reading-tools button[aria-pressed=true],.reading-tools a[aria-current]{background:var(--ink)!important;color:var(--ground)!important}
