/* ==========================================================
   warrantyData 專屬樣式（由 FrontendCtrler 依樣板檔名自動載入）
   視覺規範沿用 rightToRepair.css：色票、字型、字級、區塊間距、Hero、Insights 卡片
   注意：所有選擇器皆以 .wd 為根，避免影響共用 Header/Footer
   ========================================================== */

/* ----------------------------------------------------------
   字型 —— 與 rightToRepair 相同，使用自架 OpenSans-Regular / Noto Sans SC
   ---------------------------------------------------------- */
@font-face{
  font-family:"OpenSans-Regular"; font-style:normal; font-weight:400; font-display:swap;
  src:url(/assets/src/core/fonts/opensans-regular.woff) format("woff"),
      url(/assets/src/core/fonts/OpenSans-Regular.ttf) format("truetype");
}
@font-face{
  font-family:"Noto Sans SC"; font-style:normal; font-weight:400; font-display:swap;
  src:url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-regular.woff2) format("woff2"),
      url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-regular.woff) format("woff");
}
@font-face{
  font-family:"Noto Sans SC"; font-style:normal; font-weight:500; font-display:swap;
  src:url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-500.woff2) format("woff2"),
      url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-500.woff) format("woff");
}
@font-face{
  font-family:"Noto Sans SC"; font-style:normal; font-weight:700; font-display:swap;
  src:url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-700.woff2) format("woff2"),
      url(/assets/src/core/fonts/noto-sans-sc-v11-chinese-simplified-700.woff) format("woff");
}

.wd{
  /* 藍色系（主）—— 同 .r2r */
  --brand:      #0B5FA5;
  --brand-dark: #08497F;
  --brand-mid:  #123F6D;
  --brand-deep: #071C33;

  /* 輔色 */
  --accent:     #00B39F;
  --accent-dk:  #00806F;
  --warn:       #C77A16;
  --warn-bg:    #FFF6EC;

  /* 底色 */
  --tint:       #E8F0F9;
  --tint-2:     #E1F1EE;
  --bg:         #FFFFFF;

  /* 文字 */
  --ink:    #10192A;
  --ink-2:  #5B6A80;
  --ink-3:  #8C99AB;
  --line:   #D9E3EF;

  --wrap:1200px;
  --r:14px;
  --shadow:0 20px 56px rgba(7,28,51,.13);
  --font-zh:"OpenSans-Regular",Helvetica,"Noto Sans SC",Arial,sans-serif;
  --font-en:"OpenSans-Regular",Helvetica,"Noto Sans SC",Arial,sans-serif;

  /* 分頁列黏貼位置（由頁面 script 依站台 Header 實際高度覆寫） */
  --wd-top:91px;

  background:var(--bg); color:var(--ink);
  font-family:var(--font-zh); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.wd *, .wd *::before, .wd *::after{ box-sizing:border-box; }

.wd h1, .wd h2, .wd h3, .wd h4{
  margin:0; line-height:1.3; font-weight:400; letter-spacing:.005em;
  word-break:keep-all; overflow-wrap:normal; text-wrap:balance;
}
.wd p{ margin:0; word-break:keep-all; overflow-wrap:break-word; }
/* 窄卡片內的內文：keep-all 會讓無空格的中文長句無法換行而溢出，改回一般斷行（同 .r2r .post 的處理） */
.wd .annot p, .wd .logic__i p, .wd .mod__calc, .wd .mod__alert, .wd .pdca__steps p, .wd .flow p,
.wd .tub__foot p, .wd .src__from, .wd .dim p, .wd .py__body dd, .wd .resp__to, .wd .resp__owner,
.wd .notes p, .wd .csteps span, .wd .loop__node, .wd .warnbox, .wd .cmpt td, .wd .cmpt th{
  word-break:normal; overflow-wrap:break-word; text-wrap:pretty;
}
.wd figure{ margin:0; }
.wd ul, .wd ol{ margin:0; padding:0; list-style:none; }
.wd a{ color:var(--brand); text-decoration:none; }
.wd img{ max-width:100%; display:block; height:auto; }
.wd :focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:4px; }
.wd .wd-defs{ position:absolute; width:0; height:0; overflow:hidden; }
.wd .ic{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; display:inline-block; }

.wd .wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }
.wd .sec{ padding:50px 0; position:relative; }

.wd .sec--tint{ background:linear-gradient(180deg,var(--tint) 0%,#F2F7FC 100%); }
.wd .sec--dark{
  background:linear-gradient(160deg,var(--brand-deep) 0%,var(--brand-mid) 100%);
  color:#fff;
}
.wd .sec--dark .lede{ color:#A9BFD8; }
.wd .sec--dark .eyebrow{ color:var(--accent); }

.wd .eyebrow{
  font-family:var(--font-en); font-size:13px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--brand); margin-bottom:18px;
}
.wd .h2{ font-size:28px; letter-spacing:-.015em; }
.wd .lede{ margin-top:20px; color:var(--ink-2); font-size:19px; max-width:800px; }
.wd .head{ margin-bottom:34px; }
.wd .head--mid{ text-align:center; max-width:900px; margin-left:auto; margin-right:auto; }
.wd .head--mid .lede{ margin-left:auto; margin-right:auto; }
.wd .subt{ font-size:20px; line-height:1.5; color:var(--ink); text-align:center; margin:0 0 22px; }

/* ---------- 按鈕（同 .r2r .btn） ---------- */
.wd .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 34px; border-radius:8px; font-weight:500; font-size:17px;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition:background .18s,color .18s,border-color .18s,box-shadow .18s;
}
.wd .btn .ic{ width:20px; height:20px; }
.wd .btn--accent{ background:var(--accent); color:#04231F; box-shadow:0 8px 22px rgba(0,179,159,.3); }
.wd .btn--accent:hover{ background:#00A08E; color:#04231F; }
.wd .btn--onDark{ border-color:rgba(255,255,255,.42); color:#fff; }
.wd .btn--onDark:hover{ background:rgba(255,255,255,.12); border-color:#fff; color:#fff; }
.wd .btns{ display:flex; gap:14px; flex-wrap:wrap; margin-top:40px; }
.wd .btns--mid{ justify-content:center; }

/* ---------- Hero（同 .r2r .hero） ---------- */
.wd .hero{
  position:relative; overflow:hidden; color:#fff; text-align:center;
  display:flex; align-items:center; justify-content:center;
  min-height:700px; padding:0 6%;
  background:linear-gradient(155deg,#04101F 0%,var(--brand-deep) 34%,#0D3760 76%,#124C82 100%);
}
.wd .hero__glow{
  position:absolute; width:1100px; height:1100px; left:50%; top:-680px; transform:translateX(-50%);
  background:radial-gradient(circle,rgba(0,179,159,.3) 0%,rgba(11,95,165,.22) 40%,transparent 68%);
  pointer-events:none;
}
.wd .hero__glow2{
  position:absolute; width:620px; height:620px; left:-220px; bottom:-300px;
  background:radial-gradient(circle,rgba(11,95,165,.45) 0%,transparent 66%);
  pointer-events:none;
}
.wd .hero__grid{
  position:absolute; inset:0; opacity:.6;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    url(/assets/src/224/img/warrantyData/bannerBG.webp);
  background-size:     78px 78px, 78px 78px, cover;
  background-position: 0 0,       0 0,       center center;
  background-repeat:   repeat,    repeat,    no-repeat;
}
.wd .hero__in{ position:relative; width:100%; }
.wd .hero .h1{ font-size:90px; line-height:1.2; letter-spacing:normal; margin-bottom:.5rem; color:#fff; }
.wd .hero__sub{ font-size:35px; line-height:40px; font-weight:300; color:#fff; margin:0; }

@media(max-width:991px){
  .wd .hero{ min-height:400px; }
  .wd .hero .h1{ font-size:40px; }
  .wd .hero__sub{ font-size:20px; line-height:24px; }
}

/* ---------- 主題分頁列 ---------- */
/* 站台 html/body 有 overflow-x:hidden，sticky 無效；改由頁面 script 切換 .is-fixed */
.wd .tbar-slot{ position:relative; }
.wd .tbar{
  position:relative; z-index:90;
  background:#fff; border-bottom:1px solid var(--line); box-shadow:0 6px 16px rgba(7,28,51,.05);
}
.wd .tbar.is-fixed{ position:fixed; left:0; right:0; top:var(--wd-top); }
.wd .tbar__list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:820px; margin:0 auto; }
.wd .tbar__tab{
  position:relative; display:flex; align-items:center; justify-content:center; gap:14px;
  padding:16px 12px 14px; border:0; background:none; color:var(--ink-3); text-align:left;
  font:inherit; cursor:pointer; transition:color .2s, background .2s;
}
.wd .tbar__tab::after{
  content:""; position:absolute; left:12%; right:12%; bottom:-1px; height:3px;
  border-radius:3px 3px 0 0; background:transparent; transition:background .2s;
}
.wd .tbar__tab:hover{ background:#F4F8FC; color:var(--ink-2); }
.wd .tbar__tab[aria-selected="true"]{ color:var(--ink); }
.wd .tbar__tab[aria-selected="true"]::after{ background:linear-gradient(90deg,var(--accent),var(--brand)); }
.wd .tbar__tab + .tbar__tab::before{ content:""; position:absolute; left:0; top:22%; bottom:22%; width:1px; background:var(--line); }
.wd .tbar__num{
  display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0;
  border-radius:50%; border:2px solid var(--line); color:var(--ink-3);
  font-family:var(--font-en); font-weight:600; font-size:15px; transition:all .2s;
}
.wd .tbar__tab[aria-selected="true"] .tbar__num{ border-color:transparent; background:var(--brand); color:#fff; }
.wd .tbar__txt strong{ display:block; font-size:20px; font-weight:400; line-height:1.4; }
.wd .tbar__txt small{ display:block; font-size:14px; line-height:1.5; color:inherit; opacity:.85; }

.wd .tpanel[hidden]{ display:none; }
.wd .tpanel.is-in{ animation:wdIn .35s ease both; }
@keyframes wdIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

/* ---------- 浴缸曲線 ---------- */
.wd .tub{ max-width:980px; margin:0 auto; padding:26px 30px 22px; background:#fff; border:1px solid var(--line); border-radius:var(--r); }
.wd .tub__cols{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-left:44px; text-align:center; }
.wd .tub__head h3{ font-size:20px; line-height:1.5; }
.wd .tub__head > div:nth-child(1) h3{ color:var(--brand); }
.wd .tub__head > div:nth-child(2) h3{ color:var(--ink-2); }
.wd .tub__head > div:nth-child(3) h3{ color:var(--warn); }
.wd .tub__head span{ display:block; font-family:var(--font-en); font-size:14px; color:var(--ink-3); line-height:1.6; margin-bottom:10px; }
.wd .tub__plot{ position:relative; margin-left:44px; height:220px; border-left:2px solid #8C99AB; border-bottom:2px solid #8C99AB; }
.wd .tub__plot svg{ display:block; width:100%; height:100%; }
.wd .tub__y{ position:absolute; left:-22px; top:50%; transform:translate(-50%,-50%) rotate(-90deg); font-size:14px; color:var(--ink-2); white-space:nowrap; }
.wd .tub__x{ position:absolute; right:0; bottom:-30px; font-size:14px; color:var(--ink-2); }
.wd .tub__foot{ margin-top:38px; }
.wd .tub__foot p{ font-size:16px; color:var(--ink-2); line-height:1.7; padding:0 8px; }
.wd .tub figcaption{ margin-top:16px; padding-top:12px; border-top:1px solid var(--line); font-size:14px; color:var(--ink-3); line-height:1.8; text-align:center; }

/* ---------- 四大指標流向圖 ---------- */
.wd .flow{ max-width:1080px; margin:0 auto; padding:36px 34px 28px; border:1px solid var(--line); border-radius:var(--r); background:linear-gradient(160deg,#F9FCFF,#F2F7FC); }
/* 中欄寬度 = 水槽最大寬 250px + 左右 padding 6px，避免水槽兩側多出空白讓箭頭離水槽過遠 */
.wd .flow__row{ display:grid; grid-template-columns:minmax(0,1fr) 90px 262px 90px minmax(0,1fr); align-items:center; }
.wd .flow__node{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 18px; text-align:center; }
.wd .flow__node strong{ display:block; font-family:var(--font-en); font-size:34px; font-weight:700; line-height:1.3; color:var(--brand-mid); margin:10px 0 4px; }
.wd .flow__node strong small{ font-size:15px; color:var(--ink-2); font-weight:400; }
.wd .flow__node p, .wd .tank__label p, .wd .flow__tat p{ font-size:16px; color:var(--ink-2); line-height:1.7; }
.wd .badge{ display:inline-block; padding:3px 14px; border-radius:100px; font-size:16px; font-weight:500; color:#fff; background:var(--brand-mid); line-height:1.6; }
.wd .badge--out{ background:#1877C4; }
.wd .badge--wip{ background:#0E9C93; }
.wd .badge--tat{ background:var(--warn); }
/* 兩個箭頭同尺寸：箭身高 14px、箭頭 30×18px；
   右側 padding = 箭頭寬 18px + 間距 14px，左側留 14px，箭頭兩端都不貼卡片 */
.wd .flow__pipe{ position:relative; height:100%; display:flex; align-items:center; padding:0 32px 0 14px; }
.wd .flow__pipe span{ position:relative; display:block; width:100%; height:14px; border-radius:4px 0 0 4px; }
.wd .flow__pipe span::after{
  content:""; position:absolute; left:100%; top:50%; transform:translateY(-50%);
  border-style:solid; border-color:transparent; border-width:15px 0 15px 18px;
}
.wd .flow__pipe--in span{ background:linear-gradient(90deg,var(--brand-mid),var(--brand)); }
.wd .flow__pipe--in span::after{ border-left-color:var(--brand); }
.wd .flow__pipe--out span{ background:linear-gradient(90deg,#4A9BDB,#1877C4); }
.wd .flow__pipe--out span::after{ border-left-color:#1877C4; }
.wd .flow__tank{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:0 6px; }
.wd .tank{ position:relative; width:100%; max-width:250px; height:190px; border:3px solid #9CC2E3; border-top:0; border-radius:0 0 18px 18px; background:#fff; overflow:hidden; }
.wd .tank__water{ position:absolute; left:0; right:0; bottom:0; height:72%; background:linear-gradient(180deg,#14BFAE,#0E9C93); }
.wd .tank__water svg{ position:absolute; left:0; top:-15px; width:100%; height:16px; fill:#14BFAE; }
.wd .tank__mark{ position:absolute; left:0; right:0; bottom:38%; border-top:2px dashed rgba(255,255,255,.8); z-index:2; }
.wd .tank__mark span{ position:absolute; left:10px; top:2px; font-size:14px; color:#fff; line-height:1.5; }
.wd .tank__rise{ position:absolute; right:10px; top:12px; display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--accent-dk); background:#E6F7F4; border-radius:100px; padding:2px 12px 2px 8px; z-index:2; }
.wd .tank__rise .ic{ width:16px; height:16px; transform:rotate(-90deg); }
.wd .tank__label{ text-align:center; margin-top:4px; }
.wd .flow__result{ display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:28px; margin-top:26px; padding:18px 24px; background:#fff; border:1px solid #F1D9BF; border-radius:12px; }
.wd .flow__tat{ display:flex; align-items:center; gap:14px; }
.wd .flow__tat .ic{ width:40px; height:40px; color:var(--warn); }
.wd .flow__chain{ font-size:18px; line-height:1.8; color:var(--ink); }
.wd .flow__chain span{ color:var(--ink-3); margin:0 10px; }
.wd .flow__chain strong{ color:var(--warn); font-weight:500; }
.wd .flow figcaption{ margin-top:16px; text-align:center; font-size:14px; color:var(--ink-3); line-height:1.8; }

/* ---------- 即時看板（深色區） ---------- */
.wd .dash{ position:relative; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.2); border-radius:var(--r); padding:11px; overflow:hidden; }
.wd .dash__cap{ display:flex; flex-wrap:wrap; row-gap:6px; align-items:center; justify-content:space-between; gap:10px; font-size:16px; color:#CFDEEC; padding:2px 8px 10px; }
.wd .dash__cap > span{ display:flex; align-items:center; gap:8px; }
.wd .dash__dot{ width:7px; height:7px; background:var(--accent); border-radius:50%; box-shadow:0 0 10px var(--accent); }
.wd .dash__zoom{ display:flex; align-items:center; gap:6px; border:0; background:transparent; color:#CFDEEC; font:inherit; font-size:16px; padding:4px 5px; cursor:pointer; }
.wd .dash__zoom:hover{ color:#fff; }
.wd .dash__zoom .ic{ width:18px; height:18px; }
.wd .dash__annot{ position:relative; }
.wd .dash__img{ width:100%; border-radius:6px; }
.wd .hotspot{ position:absolute; border:2px solid #FFD34D; border-radius:6px; box-shadow:0 0 0 3px rgba(255,211,77,.2); pointer-events:none; }
.wd .hotspot b, .wd .annot b{
  display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%;
  background:#FFD34D; color:var(--brand-deep); font-family:var(--font-en); font-size:16px; font-weight:700; line-height:1;
}
.wd .hotspot b{ position:absolute; left:-15px; top:-15px; box-shadow:0 2px 8px rgba(0,0,0,.4); }
.wd .annot{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:22px; }
.wd .annot li{ display:flex; gap:14px; align-items:flex-start; padding:20px; border:1px solid rgba(255,255,255,.14); border-radius:var(--r); background:rgba(255,255,255,.05); }
.wd .annot b{ flex-shrink:0; }
.wd .annot h3{ font-size:20px; line-height:1.5; color:#fff; margin-bottom:4px; }
.wd .annot p{ font-size:16px; line-height:1.75; color:#A9BFD8; text-wrap:pretty; }

.wd .logic{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:44px 0 34px; }
.wd .logic__i{ display:grid; grid-template-columns:auto minmax(0,1fr) 120px; gap:18px; align-items:center; padding:20px 22px; border-radius:var(--r); background:rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.1); }
.wd .logic__i h3{ font-size:20px; color:#fff; line-height:1.5; margin-bottom:4px; }
.wd .logic__i p{ font-size:16px; line-height:1.75; color:#A9BFD8; }
.wd .ltag{ display:inline-block; padding:2px 12px; border-radius:100px; font-size:14px; font-weight:600; line-height:1.6; white-space:nowrap; }
.wd .ltag--stock{ background:var(--accent); color:#04231F; }
.wd .ltag--flow{ background:#9FD9FF; color:var(--brand-deep); }
.wd .logic__glyph{ width:120px; height:64px; }
.wd .logic__glyph rect{ fill:#2E5E8C; }
.wd .logic__glyph rect.hot{ fill:var(--accent); }
.wd .logic__glyph path{ fill:none; stroke:#9FD9FF; stroke-width:3; stroke-linejoin:round; stroke-linecap:round; }
.wd .logic__glyph .hot-dot{ fill:#FFD34D; }

.wd .mods + .mods{ margin-top:26px; }
.wd .mods__t{ display:flex; align-items:center; gap:14px; font-size:16px; color:#A9BFD8; margin-bottom:14px; line-height:1.6; }
.wd .mods__t span{ font-size:20px; color:#fff; }
.wd .mods__grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.wd .mod{ display:flex; flex-direction:column; gap:10px; padding:20px; border-radius:var(--r); background:#fff; color:var(--ink); }
.wd .mod header{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.wd .mod h4{ font-size:18px; line-height:1.5; color:var(--brand); }
.wd .mod__calc{ font-size:16px; line-height:1.7; color:var(--ink-2); text-wrap:pretty; }
.wd .mod__alert{ margin-top:auto; font-size:16px; line-height:1.7; color:#7A4513; background:var(--warn-bg); border-left:3px solid var(--warn); padding:8px 10px; border-radius:0 6px 6px 0; text-wrap:pretty; }
.wd .mods__grid--flow{ gap:30px; }
.wd .mods__grid--flow .mod{ position:relative; overflow:visible; }
.wd .mods__grid--flow .mod:not(:last-child)::after{
  content:""; position:absolute; right:-24px; top:50%; width:18px; height:18px; transform:translateY(-50%);
  background:no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B39F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- 例外管理 / PDCA ---------- */
.wd .lag{ max-width:980px; margin:0 auto 52px; padding:28px 30px 20px; border:1px solid var(--line); border-radius:var(--r); background:linear-gradient(140deg,#fff,#F5F9FD); }
.wd .lag__row{ display:grid; grid-template-columns:110px minmax(0,1fr); align-items:center; gap:18px; height:74px; }
.wd .lag__name{ font-size:16px; font-weight:500; color:var(--ink-2); }
.wd .lag__name--live{ color:var(--brand); }
.wd .lag__track{ position:relative; height:8px; margin-right:16px; background:#E3ECF5; border-radius:4px; }
.wd .lag__gap{ position:absolute; top:-9px; height:26px; border-radius:4px; background:repeating-linear-gradient(135deg,#F9D9B5 0 8px,#FDEBD6 8px 16px); }
.wd .lag__gap em{ position:absolute; left:50%; top:-30px; transform:translateX(-50%); white-space:nowrap; font-style:normal; font-size:14px; color:#A85A14; font-weight:500; }
.wd .lag__dot{ position:absolute; top:50%; width:20px; height:20px; border-radius:50%; transform:translate(-50%,-50%); border:3px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.07); }
.wd .lag__dot--issue{ background:var(--warn); }
.wd .lag__dot--found{ background:var(--brand); }
.wd .lag__dot--live{ width:30px; height:30px; box-shadow:0 0 0 6px rgba(11,95,165,.15); }
.wd .lag__flag{ position:absolute; top:18px; transform:translateX(-50%); white-space:nowrap; font-size:14px; color:var(--ink-2); font-weight:500; }
.wd .lag__flag--end{ transform:translateX(-100%); }
.wd .lag__flag--live{ color:var(--brand); }
.wd .lag__axis{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:18px; margin-top:16px; border-top:1px solid #E3ECF5; padding-top:8px; }
.wd .lag__axis > div{ position:relative; height:26px; margin-right:16px; }
.wd .lag__axis > div span{ position:absolute; transform:translateX(-50%); font-size:14px; color:var(--ink-3); white-space:nowrap; }
.wd .lag__axis > div span:first-child{ transform:none; }
.wd .lag__axis > div span:last-child{ transform:translateX(-100%); }
.wd .lag__legend{ display:flex; justify-content:center; flex-wrap:wrap; gap:8px 22px; margin-top:12px; font-size:14px; color:var(--ink-2); }
.wd .lag__legend span{ display:flex; align-items:center; gap:8px; }
.wd .lag__legend .lg-issue::before, .wd .lag__legend .lg-found::before{ content:""; width:12px; height:12px; border-radius:50%; background:var(--warn); }
.wd .lag__legend .lg-found::before{ background:var(--brand); }
.wd .lag__legend .lg-note{ color:var(--ink-3); }

.wd .pdca{ max-width:1080px; margin:0 auto 44px; }
.wd .pdca__steps{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; position:relative; z-index:1; }
.wd .pdca__steps li{ display:flex; gap:14px; align-items:flex-start; padding:20px; border-radius:var(--r); background:#fff; border:1px solid var(--line); border-top:4px solid var(--c); }
.wd .p-plan{ --c:#0B5FA5; } .wd .p-do{ --c:#1877C4; } .wd .p-check{ --c:#0E9C93; } .wd .p-act{ --c:#00B39F; }
.wd .pdca__l{ flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:var(--c); color:#fff; font-family:var(--font-en); font-size:20px; font-weight:700; }
.wd .pdca__steps h4{ margin:0 0 4px; font-size:18px; line-height:1.5; color:var(--ink); }
.wd .pdca__steps p{ font-size:16px; line-height:1.75; color:var(--ink-2); }
.wd .pdca__return{ position:relative; height:40px; margin:-6px 12.5% 0; border:2px dashed #9FB4CC; border-top:0; border-radius:0 0 18px 18px; }
.wd .pdca__return::before{ content:""; position:absolute; left:-8px; top:-4px; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:11px solid #9FB4CC; }
.wd .pdca__return span{ position:absolute; left:50%; bottom:-14px; transform:translateX(-50%); white-space:nowrap; background:#fff; padding:2px 16px; font-size:16px; color:var(--brand); font-weight:500; }

/* 比較表 —— 表頭色同 .r2r .cmp */
.wd .cmpt{ max-width:980px; margin:0 auto; overflow-x:auto; }
.wd .cmpt table{ width:100%; min-width:620px; border-collapse:separate; border-spacing:0 4px; font-size:16px; line-height:1.6; }
.wd .cmpt th, .wd .cmpt td{ padding:12px 22px; text-align:left; vertical-align:middle; }
.wd .cmpt thead th{ background:var(--brand-deep); color:#fff; font-weight:600; text-align:center; }
.wd .cmpt tbody th{ background:var(--tint-2); color:var(--brand); font-weight:600; width:26%; }
.wd .cmpt td{ background:#EFF2F5; color:var(--ink-2); }
.wd .cmpt td:last-child{ background:#E4F0F8; color:var(--brand-dark); font-weight:500; }

/* ---------- 段落結語 ---------- */
.wd .pclose--dark{
  padding:50px 0; color:#fff;
  background:linear-gradient(150deg,#04101F 0%,#0B3055 44%,#0B5FA5 100%);
}
.wd .pclose--dark .eyebrow{ color:var(--accent); }
.wd .pclose__in{ display:flex; align-items:center; justify-content:space-between; gap:30px; }
.wd .pclose__in p{ margin-top:14px; font-size:19px; line-height:1.8; color:#B7C8DC; }
.wd .pclose--light{ border-top:1px solid var(--line); }
.wd .csteps{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px; max-width:1080px; margin:0 auto; }
.wd .csteps li{ position:relative; padding:20px; border-radius:var(--r); background:#fff; border:1px solid var(--line); }
.wd .csteps li:not(:last-child)::after{ content:"→"; position:absolute; right:-23px; top:50%; transform:translateY(-50%); color:var(--brand); font-size:20px; }
.wd .csteps strong{ display:block; font-size:20px; font-weight:400; color:var(--ink); line-height:1.5; }
.wd .csteps span{ display:block; font-size:16px; color:var(--ink-2); line-height:1.7; }
.wd .cnote{ max-width:900px; margin:26px auto 0; text-align:center; font-size:19px; line-height:1.8; color:var(--ink-2); }
.wd .cback{ margin-top:22px; text-align:center; }
.wd .cback a{ display:inline-flex; align-items:center; gap:8px; font-size:16px; font-weight:500; color:var(--brand); border-bottom:1px solid rgba(11,95,165,.35); padding-bottom:2px; }
.wd .cback .ic{ width:18px; height:18px; transform:rotate(180deg); }

/* ---------- 數據基礎 ---------- */
.wd .srcs{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; gap:16px; max-width:1080px; margin:0 auto 44px; }
.wd .src{ padding:22px 24px; background:#fff; border:1px solid var(--line); border-radius:var(--r); }
.wd .src h3{ display:flex; align-items:center; gap:10px; font-size:20px; color:var(--ink); line-height:1.5; }
.wd .src h3 .ic{ width:28px; height:28px; color:var(--brand); }
.wd .src__from{ font-size:16px; color:var(--ink-2); line-height:1.7; margin:6px 0 14px; }
.wd .chips{ display:flex; flex-wrap:wrap; gap:7px; }
.wd .chips li{ font-size:14px; color:var(--ink-2); background:var(--tint); border-radius:100px; padding:5px 13px; line-height:1.5; }
.wd .srcs__plus{ align-self:center; font-size:30px; color:var(--brand); }
.wd .dims{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; max-width:1080px; margin:0 auto; }
.wd .dim{ position:relative; padding:22px 24px; background:#fff; border:1px solid var(--line); border-radius:var(--r); border-top:4px solid var(--accent); }
.wd .dim__key{ font-size:20px; color:var(--ink); }
.wd .dim__mode{ margin-left:10px; padding:2px 10px; border-radius:100px; background:var(--tint-2); color:var(--accent-dk); font-size:14px; font-weight:500; vertical-align:2px; }
.wd .dim q{ display:block; margin:14px 0 8px; font-size:20px; color:var(--brand); line-height:1.5; quotes:"「" "」"; }
.wd .dim p{ font-size:16px; color:var(--ink-2); line-height:1.75; }

/* ---------- 四層金字塔 ---------- */
.wd .pyr{ margin:0 auto; max-width:1120px; display:grid; gap:10px; }
.wd .py{ display:grid; grid-template-columns:330px 56px minmax(0,1fr); align-items:center; }
.wd .py__shape{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:138px; color:#fff; text-align:center; background:var(--pc); }
.wd .py__shape span{ font-family:var(--font-en); font-size:14px; opacity:.85; line-height:1.4; }
.wd .py__shape strong{ font-size:20px; font-weight:500; line-height:1.35; }
.wd .py-4{ --pc:linear-gradient(180deg,#071C33,#123F6D); }
.wd .py-4 .py__shape{ clip-path:polygon(42% 0,58% 0,69% 100%,31% 100%); }
.wd .py-4 .py__shape strong{ font-size:17px; }
.wd .py-3{ --pc:linear-gradient(180deg,#123F6D,#08497F); }
.wd .py-3 .py__shape{ clip-path:polygon(31% 0,69% 0,80% 100%,20% 100%); }
.wd .py-2{ --pc:linear-gradient(180deg,#08497F,#0B5FA5); }
.wd .py-2 .py__shape{ clip-path:polygon(20% 0,80% 0,90% 100%,10% 100%); }
.wd .py-1{ --pc:linear-gradient(180deg,#1877C4,#4A9BDB); }
.wd .py-1 .py__shape{ clip-path:polygon(10% 0,90% 0,100% 100%,0 100%); }
.wd .py__link{ position:relative; height:2px; background:#9FB4CC; margin-left:-28px; }
.wd .py-4 .py__link{ margin-left:-90px; } .wd .py-3 .py__link{ margin-left:-62px; } .wd .py-2 .py__link{ margin-left:-44px; } .wd .py-1 .py__link{ margin-left:-14px; }
.wd .py__link::after{ content:""; position:absolute; right:-1px; top:50%; transform:translateY(-50%); border-left:10px solid #9FB4CC; border-top:6px solid transparent; border-bottom:6px solid transparent; }
.wd .py__body{ margin-left:8px; padding:18px 22px; border:1px solid var(--line); border-radius:var(--r); background:#fff; }
.wd .py__body h3{ font-size:20px; line-height:1.5; color:var(--ink); margin-bottom:10px; }
.wd .py__body h3 em{ font-style:normal; color:var(--brand); border-bottom:2px solid #9FD9FF; }
.wd .py__body dl{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0; }
.wd .py__body dt{ font-size:14px; font-weight:600; color:var(--accent-dk); line-height:1.5; }
.wd .py__body dd{ margin:2px 0 0; font-size:16px; color:var(--ink-2); line-height:1.7; }
.wd .pyr__insight{ max-width:1120px; margin:22px auto 0; padding:18px 24px; border-radius:var(--r); background:linear-gradient(150deg,var(--brand-deep),var(--brand-mid)); color:#fff; font-size:18px; line-height:1.8; }
.wd .pyr__insight strong{ margin-right:12px; color:var(--accent); font-weight:500; }
.wd .notes{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; max-width:1120px; margin:28px auto 0; }
.wd .notes p{ padding:20px 22px; border-radius:var(--r); background:var(--tint); font-size:16px; line-height:1.8; color:var(--ink-2); }
.wd .notes strong{ display:block; font-size:18px; font-weight:500; color:var(--ink); margin-bottom:4px; }

/* ---------- 責任回饋 ---------- */
.wd .resps{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.wd .resp{ display:flex; flex-direction:column; gap:12px; padding:22px 20px; background:#fff; border:1px solid var(--line); border-radius:var(--r); border-top:4px solid var(--rc); }
.wd .resp--pid{ --rc:#0B5FA5; } .wd .resp--vid{ --rc:#0E9C93; } .wd .resp--cid{ --rc:#1877C4; } .wd .resp--cnd{ --rc:#8C99AB; }
.wd .resp header{ display:flex; gap:12px; align-items:flex-start; }
.wd .resp__code{ flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:12px; background:var(--rc); color:#fff; font-family:var(--font-en); font-size:17px; font-weight:700; letter-spacing:.5px; }
.wd .resp h3{ font-size:20px; line-height:1.45; color:var(--ink); }
.wd .resp__owner{ display:block; margin-top:2px; font-size:14px; color:var(--ink-2); line-height:1.6; }
.wd .resp__to{ margin-top:auto; padding:12px 14px; border-radius:8px; background:var(--tint); font-size:16px; line-height:1.75; color:var(--ink-2); }
.wd .resp__to span{ display:block; font-weight:500; color:var(--brand); margin-bottom:2px; }
.wd .resp__to span::before{ content:"→ "; }
.wd .warnbox{ display:flex; gap:12px; align-items:flex-start; max-width:1000px; margin:24px auto 0; padding:16px 20px; border-radius:10px; background:var(--warn-bg); border:1px solid #F3D4AD; font-size:16px; line-height:1.8; color:#6B4318; }
.wd .warnbox .ic{ width:24px; height:24px; color:var(--warn); margin-top:3px; }
.wd .loop{ margin:52px auto 0; max-width:1100px; padding:30px 30px 24px; background:#fff; border:1px solid var(--line); border-radius:var(--r); }
.wd .loop__track{ display:flex; align-items:stretch; gap:10px; }
.wd .loop__node{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:18px 12px; text-align:center; border-radius:12px; background:var(--tint); border:1px solid var(--line); }
.wd .loop__node .ic{ width:30px; height:30px; color:var(--brand); }
.wd .loop__node strong{ font-size:18px; font-weight:500; line-height:1.45; color:var(--ink); }
.wd .loop__node > span{ font-size:14px; color:var(--ink-2); line-height:1.6; }
.wd .loop__node--hi{ background:var(--brand-mid); border-color:var(--brand-mid); }
.wd .loop__node--hi .ic{ color:var(--accent); }
.wd .loop__node--hi strong{ color:#fff; }
.wd .loop__node ul{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:4px; }
.wd .loop__node li{ padding:1px 10px; border-radius:100px; background:rgba(255,255,255,.14); color:#CFDEEC; font-size:14px; line-height:1.6; }
.wd .loop__arrow{ align-self:center; width:24px; height:24px; color:var(--brand); }
.wd .loop__return{ position:relative; height:38px; margin:0 12%; border:2px dashed #7FCFC4; border-top:0; border-radius:0 0 18px 18px; }
.wd .loop__return::before{ content:""; position:absolute; left:-8px; top:-4px; border-left:7px solid transparent; border-right:7px solid transparent; border-bottom:11px solid #7FCFC4; }
.wd .loop__return span{ position:absolute; left:50%; bottom:-14px; transform:translateX(-50%); white-space:nowrap; background:#fff; padding:2px 16px; font-size:16px; color:var(--accent-dk); font-weight:500; }

/* ---------- CTA（同 .r2r .cta） ---------- */
.wd .cta{
  position:relative; overflow:hidden; color:#fff; text-align:center; padding:50px 0;
  background:linear-gradient(150deg,#04101F 0%,#0B3055 44%,#0B5FA5 100%);
}
.wd .cta__glow{
  position:absolute; width:900px; height:900px; left:50%; top:-460px; transform:translateX(-50%);
  background:radial-gradient(circle,rgba(0,179,159,.3) 0%,transparent 64%); pointer-events:none;
}
.wd .cta h2{ position:relative; font-size:clamp(26px,3.8vw,42px); letter-spacing:-.015em; }
.wd .cta p{ position:relative; margin-top:20px; color:#B7C8DC; font-size:19px; }
.wd .cta .btns{ position:relative; }

/* ---------- Insights（同 .r2r .posts / .post） ---------- */
.wd .posts{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.wd .posts--2{ grid-template-columns:repeat(2,1fr); max-width:820px; margin:0 auto; }
.wd .post{
  position:relative; min-width:0;
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden; transition:transform .22s, box-shadow .22s, border-color .22s;
}
.wd .post:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--brand); }
.wd .post__top{ height:112px; position:relative; }
.wd .post:nth-child(1) .post__top{ background:linear-gradient(135deg,#0B5FA5,#12406E); }
.wd .post:nth-child(2) .post__top{ background:linear-gradient(135deg,#0E7E8C,#0B5FA5); }
.wd .post__top::after{
  content:""; position:absolute; inset:0; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
  background-size:26px 26px;
}
.wd .post__tag{
  position:absolute; left:22px; bottom:18px; z-index:1;
  font-family:var(--font-en); font-size:11.5px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:#fff; padding:4px 11px; border-radius:100px;
  background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.3);
}
/* 目前所在分頁對應的文章 */
.wd .post__now{
  position:absolute; right:16px; top:14px; z-index:1; display:none;
  font-size:13px; font-weight:600; color:#04231F; background:var(--accent);
  padding:2px 11px; border-radius:100px;
}
.wd .post.is-current{ border-color:var(--accent); }
.wd .post.is-current .post__now{ display:inline-block; }
.wd .post__body{ padding:20px; flex:1; display:flex; flex-direction:column; }
.wd .post h3{ font-size:18px; line-height:1.5; margin-bottom:10px; color:var(--ink); word-break:normal; overflow-wrap:break-word; text-wrap:pretty; }
.wd .post p{ color:var(--ink-2); font-size:16px; flex:1; word-break:normal; text-wrap:pretty; }
.wd .post__more{ margin-top:10px; font-size:16px; font-weight:500; color:var(--brand); }

/* ---------- 看板放大 dialog（位於 .wd 之外，獨立命名） ---------- */
.wd-dialog{ max-width:min(1600px,96vw); max-height:94vh; padding:14px; border:1px solid rgba(255,255,255,.2); border-radius:14px; background:#071C33; color:#fff; }
.wd-dialog:not([open]){ display:none; }
.wd-dialog::backdrop{ background:rgba(4,16,31,.85); }
.wd-dialog__top{ display:flex; justify-content:space-between; align-items:center; gap:15px; padding:0 0 10px; font-size:16px; }
.wd-dialog__close{ border:0; background:rgba(255,255,255,.1); color:#fff; border-radius:6px; padding:5px; line-height:0; cursor:pointer; }
.wd-dialog__close .ic{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.wd-dialog img{ display:block; max-height:80vh; width:auto; max-width:100%; height:auto; object-fit:contain; }

/* ==========================================================
   RWD
   ========================================================== */
.wd .br-wide{ display:inline; }

@media(max-width:1200px){
  .wd .posts{ grid-template-columns:repeat(2,1fr); }
  .wd .flow__row{ grid-template-columns:minmax(0,1fr) 64px 262px 64px minmax(0,1fr); }
  .wd .flow__pipe{ padding:0 26px 0 8px; }
  .wd .mods__grid, .wd .resps{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wd .mods__grid--flow{ gap:30px; }
  .wd .mods__grid--flow .mod:nth-child(2)::after{ right:auto; left:50%; top:auto; bottom:-25px; transform:translateX(-50%) rotate(135deg); }
  .wd .logic__i{ grid-template-columns:auto minmax(0,1fr); }
  .wd .logic__glyph{ display:none; }
  .wd .py{ grid-template-columns:250px 44px minmax(0,1fr); }
  .wd .py-4 .py__link{ margin-left:-70px; } .wd .py-3 .py__link{ margin-left:-48px; } .wd .py-2 .py__link{ margin-left:-34px; } .wd .py-1 .py__link{ margin-left:-10px; }
  .wd .py-4 .py__shape strong{ font-size:15px; }
  .wd .py__body dl{ grid-template-columns:1fr; gap:6px; }
  .wd .py__body dl > div{ display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px; }
  .wd .py__body dd{ margin:0; }
  .wd .csteps{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wd .csteps li:nth-child(2)::after{ display:none; }
}
@media(max-width:900px){
  .wd .br-wide{ display:none; }
  .wd .posts{ grid-template-columns:1fr; }
  .wd .posts--2{ max-width:480px; }
  .wd .annot{ grid-template-columns:1fr; gap:12px; }
  .wd .logic{ grid-template-columns:1fr; }
  .wd .pdca__steps{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wd .pdca__return{ display:none; }
  .wd .pclose__in{ flex-direction:column; align-items:flex-start; gap:22px; }
  .wd .srcs{ grid-template-columns:1fr; }
  .wd .srcs__plus{ justify-self:center; line-height:1; }
  .wd .dims, .wd .notes{ grid-template-columns:1fr; }
  .wd .loop__track{ flex-direction:column; }
  .wd .loop__arrow{ transform:rotate(90deg); }
  .wd .loop__return{ display:none; }

  /* 四大指標流向圖改為直向（≤900px；760～900px 橫排時卡片只剩約 140px 寬） */
  .wd .flow__row{ grid-template-columns:1fr; gap:0; max-width:420px; margin:0 auto; }
  /* 直向：兩個箭頭同尺寸（箭身 14×20px、箭頭 30×18px），上下各留 10px 不貼卡片 */
  .wd .flow__pipe{ height:auto; justify-content:center; align-items:flex-start; padding:10px 0 28px; }
  .wd .flow__pipe span{ width:14px; height:20px; border-radius:4px 4px 0 0; }
  .wd .flow__pipe span::after{ left:50%; top:100%; transform:translateX(-50%); border-width:18px 15px 0 15px; }
  .wd .flow__pipe--in span{ background:linear-gradient(180deg,var(--brand-mid),var(--brand)); }
  .wd .flow__pipe--in span::after{ border-color:var(--brand) transparent transparent; }
  .wd .flow__pipe--out span{ background:linear-gradient(180deg,#4A9BDB,#1877C4); }
  .wd .flow__pipe--out span::after{ border-color:#1877C4 transparent transparent; }
}
@media(max-width:760px){
  .wd .tbar__tab{ gap:10px; padding:12px 6px 10px; }
  .wd .tbar__num{ width:34px; height:34px; font-size:14px; }
  .wd .tbar__txt strong{ font-size:18px; }

  .wd .tub{ padding:20px 12px 18px; }
  .wd .tub__cols, .wd .tub__plot{ margin-left:26px; }
  .wd .tub__y{ left:-14px; }
  .wd .tub__plot{ height:170px; }
  .wd .tub__head h3{ font-size:16px; }
  .wd .tub__foot p{ font-size:14px; padding:0 4px; line-height:1.6; }

  .wd .flow{ padding:24px 16px 20px; }
  .wd .flow__node strong{ font-size:30px; }
  .wd .tank{ height:160px; }
  .wd .flow__result{ grid-template-columns:1fr; gap:12px; padding:16px; }
  .wd .flow__chain{ font-size:16px; }

  .wd .mods__grid, .wd .resps{ grid-template-columns:1fr; }
  .wd .mods__grid--flow .mod:not(:last-child)::after,
  .wd .mods__grid--flow .mod:nth-child(2)::after{ right:auto; left:50%; top:auto; bottom:-25px; transform:translateX(-50%) rotate(90deg); display:block; }
  .wd .logic__i{ grid-template-columns:1fr; gap:10px; padding:18px; }
  .wd .logic__i > .ltag{ justify-self:start; }
  .wd .mods__t{ flex-direction:column; align-items:flex-start; gap:2px; }

  .wd .lag{ padding:20px 14px 16px; }
  .wd .lag__row, .wd .lag__axis{ grid-template-columns:76px minmax(0,1fr); gap:10px; }
  .wd .lag__name{ font-size:14px; }
  .wd .lag__gap em{ top:-28px; }
  .wd .lag__flag--live{ transform:translateX(-20%); }
  .wd .lag__axis .lag__ax-start{ display:none; }
  .wd .pdca__steps{ grid-template-columns:1fr; }

  /* 比較表改為卡片 */
  .wd .cmpt{ overflow:visible; }
  .wd .cmpt table{ min-width:0; border-spacing:0; }
  .wd .cmpt thead{ display:none; }
  .wd .cmpt table, .wd .cmpt tbody, .wd .cmpt tr, .wd .cmpt th, .wd .cmpt td{ display:block; width:auto; }
  .wd .cmpt tr{ margin-bottom:12px; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
  .wd .cmpt tbody th{ width:auto; padding:10px 14px; }
  .wd .cmpt td{ padding:10px 14px; }
  .wd .cmpt td::before{ content:attr(data-label); display:block; font-size:14px; font-weight:600; color:var(--ink-3); }
  .wd .cmpt td:last-child::before{ color:var(--brand); }

  .wd .py{ grid-template-columns:1fr; }
  .wd .pyr{ gap:16px; }
  .wd .py__link{ display:none; }
  .wd .py__shape{ clip-path:none !important; min-height:58px; flex-direction:row; gap:10px; margin:0 auto; border-radius:10px 10px 0 0; }
  .wd .py-4 .py__shape{ width:58%; } .wd .py-3 .py__shape{ width:72%; } .wd .py-2 .py__shape{ width:86%; } .wd .py-1 .py__shape{ width:100%; }
  .wd .py__shape strong, .wd .py-4 .py__shape strong{ font-size:18px; }
  .wd .py__body{ margin-left:0; padding:16px; }
  .wd .py__body dl > div{ grid-template-columns:1fr; gap:0; }
  .wd .pyr__insight{ font-size:16px; padding:16px; }
  .wd .pyr__insight strong{ display:block; margin:0 0 4px; }

  .wd .resp__code{ width:50px; height:50px; }
  .wd .loop{ padding:22px 14px 18px; }

  .wd .csteps{ grid-template-columns:1fr; gap:22px; }
  .wd .csteps li:not(:last-child)::after{ display:block !important; content:"↓"; right:auto; left:50%; top:auto; bottom:-24px; transform:translateX(-50%); }
  .wd .csteps li:last-child::after{ display:none !important; }

  .wd .post.is-current{ order:-1; }
}
@media(max-width:560px){
  .wd .btns .btn{ width:100%; }
  .wd .tbar__txt small{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  .wd .tpanel.is-in{ animation:none; }
  .wd .post, .wd .tbar__tab{ transition:none; }
  .wd .post:hover{ transform:none; }
}
@media print{
  .wd .tbar{ display:none; }
  .wd .tpanel[hidden]{ display:block !important; }
}

/* ==========================================================
   互動與動畫（比照 rightToRepair：卡片上浮、陰影、邊框／圖示變色、頂部色條展開、脈衝光圈、流動效果）
   進場與圖表動畫只在 .wd.js（頁面 script 已啟動）時生效；未執行 JS 時內容維持可見
   ========================================================== */

/* ---------- 捲動進場 ---------- */
.wd.js .rev{ opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
.wd.js .rev.in{ opacity:1; transform:none; }
.wd.js .stag > *{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.wd.js .stag.in > *{ opacity:1; transform:none;
  transition:opacity .55s ease, transform .4s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
/* 進場結束後（script 加上 .done）取消逐張延遲，避免 hover 移出時卡頓 */
.wd.js .stag.done > *{ transition-delay:0s !important; }
.wd.js .stag.in > *:nth-child(2){ transition-delay:.08s; }
.wd.js .stag.in > *:nth-child(3){ transition-delay:.16s; }
.wd.js .stag.in > *:nth-child(4){ transition-delay:.24s; }
.wd.js .stag.in > *:nth-child(5){ transition-delay:.32s; }
.wd.js .stag.in > *:nth-child(6){ transition-delay:.40s; }
.wd.js .stag.in > *:nth-child(7){ transition-delay:.48s; }
.wd.js .stag.in > *:hover{ transition-delay:0s; }

/* ---------- 卡片 hover（同 .r2r .rdy__i / .sol__i / .ob__i） ---------- */
.wd .flow__node, .wd .src, .wd .dim, .wd .resp, .wd .pdca__steps li, .wd .csteps li,
.wd .notes p, .wd .py__body, .wd .loop__node{
  transition:opacity .55s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.wd .flow__node:hover, .wd .src:hover, .wd .dim:hover, .wd .resp:hover, .wd .pdca__steps li:hover,
.wd .csteps li:hover, .wd .py__body:hover, .wd .loop__node:hover{
  transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--brand);
}
.wd .notes p:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(7,28,51,.08); }
.wd .loop__node--hi:hover{ border-color:var(--accent); }

/* 深色區卡片（同 .r2r .wht__i） */
.wd .annot li, .wd .logic__i{ transition:opacity .55s ease, background .22s ease, border-color .22s ease, transform .22s ease; }
.wd .annot li:hover, .wd .logic__i:hover{ background:rgba(0,179,159,.1); border-color:rgba(0,179,159,.42); transform:translateY(-4px); }
.wd .mod{ transition:opacity .55s ease, transform .22s ease, box-shadow .22s ease; }
.wd .mod:hover{ transform:translateY(-5px); box-shadow:0 20px 40px rgba(0,0,0,.28); }

/* 頂部色條由左展開（同 .r2r .ob__i::before） */
.wd .src, .wd .notes p{ position:relative; overflow:hidden; }
.wd .csteps li{ position:relative; }
.wd .src::before, .wd .notes p::before, .wd .csteps li::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px; border-radius:var(--r) var(--r) 0 0;
  background:linear-gradient(90deg,var(--brand),var(--accent));
  transform:scaleX(0); transform-origin:left; transition:transform .3s ease;
}
.wd .src:hover::before, .wd .notes p:hover::before, .wd .csteps li:hover::before{ transform:scaleX(1); }

/* 圖示／徽章 hover 變色（同 .r2r .rdy__ic / .ob__ic） */
.wd .src h3 .ic{ transition:color .22s ease, transform .22s ease; }
.wd .src:hover h3 .ic{ color:var(--accent); transform:scale(1.1); }
.wd .loop__node .ic{ transition:transform .22s ease; }
.wd .loop__node:hover .ic{ transform:scale(1.12); }
.wd .pdca__l, .wd .resp__code{ transition:transform .22s ease, box-shadow .22s ease; }
.wd .pdca__steps li:hover .pdca__l, .wd .resp:hover .resp__code{ transform:scale(1.08); box-shadow:0 6px 16px rgba(7,28,51,.18); }
.wd .dim__mode{ transition:background .22s ease, color .22s ease; }
.wd .dim:hover .dim__mode{ background:var(--accent); color:#fff; }
.wd .chips li{ transition:background .2s ease, color .2s ease; }
.wd .src:hover .chips li{ background:#DCEAF7; color:var(--brand-dark); }
.wd .py__shape{ transition:filter .22s ease; }
.wd .py:hover .py__shape{ filter:brightness(1.15); }
.wd .cmpt td{ transition:background .2s ease; }
.wd .cmpt tbody tr:hover td:last-child{ background:#D6EAF8; }
.wd .annot li b{ transition:transform .22s ease; }
.wd .annot li:hover b{ transform:scale(1.12); }
.wd .btn .ic{ transition:transform .2s ease; }
.wd .btn:hover .ic{ transform:translateX(4px); }
.wd .cback .ic{ transition:transform .2s ease; }
.wd .cback a:hover .ic{ transform:rotate(180deg) translateX(4px); }

/* ==========================================================
   圖表動畫
   ========================================================== */

/* 浴缸曲線：沿線描出，三段說明依序出現 */
.wd.js .tub .tub__line{ stroke-dasharray:1; stroke-dashoffset:1; }
.wd.js .tub.in .tub__line{ stroke-dashoffset:0; transition:stroke-dashoffset 1.8s ease .3s; }
.wd.js .tub__foot p{ opacity:0; transition:opacity .5s ease; }
.wd.js .tub.in .tub__foot p{ opacity:1; }
.wd.js .tub.in .tub__foot p:nth-child(1){ transition-delay:.6s; }
.wd.js .tub.in .tub__foot p:nth-child(2){ transition-delay:1.1s; }
.wd.js .tub.in .tub__foot p:nth-child(3){ transition-delay:1.6s; }

/* 四大指標：管線流動條紋、水位上升、波浪、上升標籤、結論列 */
.wd .flow__pipe span::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 10px,transparent 10px 22px);
  background-size:44px 100%;
  animation:wdPipe 1.1s linear infinite;
}
@keyframes wdPipe{ from{ background-position:0 0; } to{ background-position:44px 0; } }
.wd.js .flow .tank__water{ height:0; transition:height 1.8s cubic-bezier(.3,.7,.3,1) .3s; }
.wd.js .flow.in .tank__water{ height:72%; }
.wd .tank__water svg{ width:200%; animation:wdWave 3.2s linear infinite; }
@keyframes wdWave{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.wd.js .flow .tank__rise{ opacity:0; transform:translateY(8px); transition:opacity .4s ease 1.9s, transform .4s ease 1.9s; }
.wd.js .flow.in .tank__rise{ opacity:1; transform:none; }
.wd .tank__rise .ic{ animation:wdRise 1.6s ease-in-out infinite; }
@keyframes wdRise{ 0%,100%{ transform:rotate(-90deg) translateX(0); } 50%{ transform:rotate(-90deg) translateX(3px); } }
.wd.js .flow .flow__result{ opacity:0; transform:translateY(12px); transition:opacity .5s ease 1.2s, transform .5s ease 1.2s; }
.wd.js .flow.in .flow__result{ opacity:1; transform:none; }

/* 電子看板：熱點依序出現並持續脈衝 */
.wd.js .dash .hotspot{ opacity:0; transform:scale(.92); transition:opacity .45s ease, transform .45s ease; }
.wd.js .dash.in .hotspot{ opacity:1; transform:none; }
.wd.js .dash.in .hotspot:nth-of-type(1){ transition-delay:.3s; }
.wd.js .dash.in .hotspot:nth-of-type(2){ transition-delay:.6s; }
.wd.js .dash.in .hotspot:nth-of-type(3){ transition-delay:.9s; }
.wd .hotspot::after{
  content:""; position:absolute; inset:-2px; border-radius:6px; border:2px solid #FFD34D;
  animation:wdHot 2.4s ease-out infinite; pointer-events:none;
}
.wd .hotspot:nth-of-type(2)::after{ animation-delay:.8s; }
.wd .hotspot:nth-of-type(3)::after{ animation-delay:1.6s; }
@keyframes wdHot{ 0%{ opacity:.8; transform:scale(1); } 100%{ opacity:0; transform:scale(1.08); } }

/* 判斷邏輯小圖：長條長高、折線描出、異常點脈衝 */
.wd .logic__glyph rect{ transform-box:fill-box; transform-origin:50% 100%; }
.wd.js .logic .logic__glyph rect{ transform:scaleY(0); transition:transform .6s cubic-bezier(.3,.7,.3,1); }
.wd.js .logic.in .logic__glyph rect{ transform:scaleY(1); }
.wd.js .logic.in .logic__glyph rect:nth-child(2){ transition-delay:.1s; }
.wd.js .logic.in .logic__glyph rect:nth-child(3){ transition-delay:.2s; }
.wd.js .logic.in .logic__glyph rect:nth-child(4){ transition-delay:.4s; }
.wd.js .logic .logic__glyph path{ stroke-dasharray:1; stroke-dashoffset:1; }
.wd.js .logic.in .logic__glyph path{ stroke-dashoffset:0; transition:stroke-dashoffset 1.2s ease .2s; }
.wd .logic__glyph .hot-dot{ transform-box:fill-box; transform-origin:center; animation:wdDot 1.8s ease-in-out infinite; }
@keyframes wdDot{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.5); } }

/* 流向箭頭輕推（核心指標、改善迴圈、結語步驟） */
@keyframes wdNudge{ 0%,100%{ translate:0 0; } 50%{ translate:4px 0; } }
@keyframes wdNudgeV{ 0%,100%{ translate:0 0; } 50%{ translate:0 4px; } }
.wd .mods__grid--flow .mod:not(:last-child)::after,
.wd .loop__arrow,
.wd .csteps li:not(:last-child)::after{ animation:wdNudge 1.6s ease-in-out infinite; }
/* 斜向／直向箭頭（RWD 轉向後）不做輕推，直向的改為上下輕推 */
@media(max-width:1200px){ .wd .mods__grid--flow .mod:nth-child(2)::after{ animation:none; } }
@media(max-width:900px){ .wd .loop__arrow{ animation-name:wdNudgeV; } }

/* 時間軸：累積區段由左展開、發現點延後出現、即時點脈衝光圈（同 .r2r .tpulse） */
.wd.js .lag .lag__gap{ transform:scaleX(0); transform-origin:left; transition:transform 1.4s cubic-bezier(.3,.7,.3,1) .4s; }
.wd.js .lag.in .lag__gap{ transform:scaleX(1); }
.wd.js .lag .lag__gap em{ opacity:0; transition:opacity .4s ease 1.6s; }
.wd.js .lag.in .lag__gap em{ opacity:1; }
.wd.js .lag .lag__dot--found:not(.lag__dot--live), .wd.js .lag .lag__flag--end{ opacity:0; transition:opacity .4s ease 1.8s; }
.wd.js .lag.in .lag__dot--found:not(.lag__dot--live), .wd.js .lag.in .lag__flag--end{ opacity:1; }
.wd .lag__dot--live{ animation:wdPulse 2.6s ease-out infinite; }
@keyframes wdPulse{
  0%{ box-shadow:0 0 0 0 rgba(11,95,165,.4), 0 0 0 1px rgba(0,0,0,.07); }
  100%{ box-shadow:0 0 0 16px rgba(11,95,165,0), 0 0 0 1px rgba(0,0,0,.07); }
}

/* PDCA／改善迴圈：回流標籤呼吸光暈 */
.wd .pdca__return span, .wd .loop__return span{ border-radius:100px; animation:wdBreath 3s ease-in-out infinite; }
@keyframes wdBreath{ 0%,100%{ box-shadow:0 0 0 0 rgba(0,179,159,0); } 50%{ box-shadow:0 0 0 6px rgba(0,179,159,.12); } }

/* 金字塔：由底層往上依序出現（Level 1 → 4），連接線隨後畫出 */
.wd.js .pyr.in > .py-1{ transition-delay:0s; }
.wd.js .pyr.in > .py-2{ transition-delay:.15s; }
.wd.js .pyr.in > .py-3{ transition-delay:.3s; }
.wd.js .pyr.in > .py-4{ transition-delay:.45s; }
.wd.js .pyr .py__link{ transform:scaleX(0); transform-origin:left; transition:transform .5s ease; }
.wd.js .pyr.in .py__link{ transform:scaleX(1); }
.wd.js .pyr.in .py-1 .py__link{ transition-delay:.5s; }
.wd.js .pyr.in .py-2 .py__link{ transition-delay:.65s; }
.wd.js .pyr.in .py-3 .py__link{ transition-delay:.8s; }
.wd.js .pyr.in .py-4 .py__link{ transition-delay:.95s; }

@media(max-width:900px){
  /* 流向圖直向時，管線條紋改為往下流動 */
  .wd .flow__pipe span::before{
    background:repeating-linear-gradient(180deg,rgba(255,255,255,.28) 0 8px,transparent 8px 18px);
    background-size:100% 36px; animation-name:wdPipeV;
  }
}
@media(max-width:760px){
  /* 手機：直向箭頭不做左右輕推 */
  .wd .mods__grid--flow .mod:not(:last-child)::after,
  .wd .csteps li:not(:last-child)::after{ animation:none; }
}
@keyframes wdPipeV{ from{ background-position:0 0; } to{ background-position:0 36px; } }

@media (prefers-reduced-motion:reduce){
  .wd.js .rev, .wd.js .stag > *{ opacity:1; transform:none; transition:none; }
  .wd *, .wd *::before, .wd *::after{ animation:none !important; }
  .wd.js .tub .tub__line, .wd.js .logic .logic__glyph path{ stroke-dashoffset:0; }
  .wd.js .flow .tank__water{ height:72%; transition:none; }
  .wd.js .flow .tank__rise, .wd.js .flow .flow__result, .wd.js .tub__foot p,
  .wd.js .dash .hotspot, .wd.js .lag .lag__gap em,
  .wd.js .lag .lag__dot--found:not(.lag__dot--live), .wd.js .lag .lag__flag--end{ opacity:1; transform:none; transition:none; }
  .wd.js .logic .logic__glyph rect, .wd.js .lag .lag__gap, .wd.js .pyr .py__link{ transform:none; transition:none; }
}
@media print{
  .wd.js .rev, .wd.js .stag > *{ opacity:1 !important; transform:none !important; }
}
