/* 法律工具箱總覽頁（全站殼內使用；樣式範圍限 .hub-page）
   115.11.11 全站改版第二批：依首頁定版語彙重做外觀。深藍墨首屏帶＋信任三聲明、依類別分組、
   各卡保留 115.10.22 主題色（--ac／--tn）作左緣識別色條（深色模式亦保留）、手機卡精簡。
   文字內容不變；本檔只管外觀。動效只動 transform／opacity。 */
.hub-page{color:#213e50}
.hub-page.hub6{max-width:none;margin:0;padding:0}
.hub6{--h-ink:#1c3545;--h-ink2:#243f4f;--h-gold:#b79544;--h-gold-hi:#e0c789;--h-paper:#f8f5ef;--h-card:#fffdf8;--h-line:#d8d9d4;--h-muted:#536775;--h-latin:Cormorant,Georgia,serif;--h-serif:QXTitle,GenRyu,NotoSerif,'Songti TC',serif}
.hub6-in{max-width:1480px;margin:0 auto;padding:0 var(--gutter,clamp(24px,6vw,96px))}
.hub6 .tt-dark{display:none}

/* 首屏帶 */
.hub6-hero{position:relative;overflow:hidden;background:var(--h-ink);color:#f8f5ef;padding:26px 0 54px;border-bottom:3px solid var(--h-gold)}
.hub6-hero::before{content:"";position:absolute;inset:-30%;pointer-events:none;background:radial-gradient(ellipse at 78% 62%,rgba(164,139,71,.22),transparent 42%),linear-gradient(115deg,transparent 32%,rgba(213,186,103,.1) 45%,transparent 58%)}
.hub6-hero .hub6-in{position:relative}
.hub6-hero .studio-breadcrumb{margin:0 0 30px;color:#c5d1d7}
.hub6-hero .studio-breadcrumb a{color:inherit}
.hub6-paws{position:absolute;left:38%;top:34px;width:300px;height:150px;pointer-events:none}
.hub6-paws i{position:absolute;width:20px;height:21px;background:var(--h-gold-hi);-webkit-mask:url("/assets/redesign/paw.svg") center/contain no-repeat;mask:url("/assets/redesign/paw.svg") center/contain no-repeat;opacity:.5}
.hub6-paws i:nth-child(1){left:0;top:108px;transform:rotate(58deg) scale(.6);opacity:.2}
.hub6-paws i:nth-child(2){left:52px;top:118px;transform:rotate(72deg) scale(.72);opacity:.28}
.hub6-paws i:nth-child(3){left:106px;top:84px;transform:rotate(48deg) scale(.84);opacity:.36}
.hub6-paws i:nth-child(4){left:164px;top:78px;transform:rotate(70deg) scale(.95);opacity:.46}
.hub6-paws i:nth-child(5){left:222px;top:36px;transform:rotate(46deg) scale(1.08);opacity:.58}
.hub6 .hub-top{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:end}
.hub6 .hub-top .studio-en{display:block;padding:0;font-family:var(--h-latin);font-style:italic;font-size:24px;letter-spacing:.04em;color:var(--h-gold-hi);min-width:0;width:auto}
.hub6 .hub-top .studio-en.paw-mark::before{background:var(--h-gold-hi);width:15px;height:15px;margin-right:10px}
.hub6 .hub-top h1{font-family:var(--h-serif);font-weight:400;font-size:clamp(38px,5.2vw,64px);line-height:1.3;letter-spacing:.06em;margin:8px 0 14px;color:#fff}
.hub6 .hub-top p{font-size:17px;line-height:1.95;color:#d5dde1;max-width:560px;margin:0}

/* 信任三聲明：一列標章 */
.hub6 .hub-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:30px;border-top:1px solid rgba(224,199,137,.55);border-bottom:1px solid rgba(224,199,137,.55)}
.hub6 .hub-trust div{padding:16px 16px 16px 0;border:0;border-radius:0;text-align:left;font-size:15px;line-height:1.75;color:#cdd7dc;background:none}
.hub6 .hub-trust div+div{padding-left:16px;border-left:1px solid rgba(224,199,137,.28)}
.hub6 .hub-trust b{display:flex;align-items:center;gap:8px;font-family:var(--h-serif);font-weight:400;font-size:20px;letter-spacing:.08em;margin-bottom:4px;color:var(--h-gold-hi)}
.hub6 .hub-trust b::before{content:"";flex:none;width:9px;height:9px;border:1px solid var(--h-gold-hi);transform:rotate(45deg)}

/* 分組標籤 */
.hub6-gl{display:flex;align-items:baseline;gap:12px;margin:0 0 14px;font-size:16px;letter-spacing:.14em;color:#213e50}
.hub6-gl span{font-weight:600}
.hub6-gl em{font-family:var(--h-latin);font-style:italic;font-size:19px;letter-spacing:.03em;color:#7a5f1c}
.hub6-gl::after{content:"";flex:1;height:1px;background:rgba(149,119,55,.45);transform:translateY(-4px)}
.hub6-gl.on-ink{color:#f8f5ef}
.hub6-gl.on-ink em{color:var(--h-gold-hi)}
.hub6-gl.on-ink .paw-mark::before{background:var(--h-gold-hi)}
.hub6-gl.on-ink::after{background:rgba(224,199,137,.5)}

/* 主打卡：諮詢準備 */
.hub-feat{position:relative;display:block;padding:30px 30px 28px;background:var(--h-card);border:1px solid var(--h-gold);outline:1px solid rgba(224,199,137,.55);outline-offset:6px;text-decoration:none;color:#213e50;overflow:hidden;border-radius:0;transition:transform .3s}
.hub-feat .k{display:block;font-size:15px;letter-spacing:.1em;color:#7a5f1c;font-weight:600;padding-right:150px}
.hub-feat h2{font-family:var(--h-serif);font-weight:400;font-size:32px;line-height:1.4;letter-spacing:.05em;margin:6px 0 12px;padding-right:150px}
.hub-feat ul{margin:0 0 22px;padding:0;list-style:none;font-size:16px;line-height:1.85;color:#3b5566;max-width:66%}
.hub-feat li{position:relative;padding-left:20px}
.hub-feat li::before{content:"";position:absolute;left:0;top:.72em;width:9px;height:1px;background:#957737}
.hub-feat .go{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 30px;background:#ddc488;color:#203b4c;font-weight:600;letter-spacing:.1em;border-radius:0}
.hub-feat .pic img{position:absolute;right:16px;bottom:12px;width:150px;height:150px}
.hub-feat:hover{transform:translateY(-3px)}
.hub6-featwrap{min-width:0}

/* 工具卡區 */
.hub6-body{background:var(--h-paper);padding:56px 0 76px}
.hub6 .hub-lbl{font-family:var(--h-serif);font-weight:400;font-size:clamp(26px,3vw,36px);letter-spacing:.06em;line-height:1.5;margin:0 0 30px}
.hub6-group{min-width:0}
.hub6-group+.hub6-duo,.hub6-duo,.hub6-duo+.hub6-group{margin-top:40px}
.hub6-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.hub6 .hub-tcs{display:grid;gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.hub6 .hub-tcs.hub6-n1{grid-template-columns:1fr}
.hub6 .hub-tc,.hub6 .hub-tc:nth-child(n+4),.hub6 .hub-tc:last-child{grid-column:auto}
.hub-tc{position:relative;display:flex;flex-direction:column;gap:8px;padding:24px 24px 22px 28px;background:var(--h-card);border:1px solid var(--h-line);border-left:5px solid var(--ac);text-decoration:none;color:#213e50;overflow:hidden;min-height:268px;border-radius:0;transition:transform .3s}
.hub-tc.tc-court{--ac:#254857;--tn:#e2eaed}   /* 司法機關地圖卡主題色（115.11.16 律師裁示：新卡不寫行內樣式，改類別） */
.hub-tc::after{content:"";position:absolute;right:0;top:0;width:132px;height:132px;background:var(--tn);clip-path:polygon(100% 0,0 0,100% 100%);opacity:.9}
.hub-tc .pic img{position:absolute;right:8px;top:8px;width:88px;height:88px;z-index:1}
.hub-tc .who{font-size:14px;font-weight:600;letter-spacing:.06em;color:var(--ac);max-width:calc(100% - 96px)}
.hub-tc h3{font-family:var(--h-serif);font-weight:400;font-size:23px;line-height:1.5;letter-spacing:.04em;margin:0;max-width:calc(100% - 92px);min-height:3em}
.hub-tc ul{margin:6px 0 0;padding:0;list-style:none;font-size:16px;line-height:1.75;color:#3b5566}
.hub-tc li{position:relative;padding-left:18px}
.hub-tc li::before{content:"";position:absolute;left:0;top:.7em;width:8px;height:1px;background:var(--ac)}
.hub-tc .ft{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;border-top:1px solid var(--h-line)}
.hub-tc ul{padding-bottom:14px}
.hub-tc .ft small{display:inline-flex;align-items:baseline;gap:4px;font-size:15px;color:#3b5566;white-space:nowrap}
.hub-tc .ft small em{font-family:var(--h-serif);font-style:normal;font-size:26px;line-height:1;font-variant-numeric:lining-nums;color:var(--ac)}
.hub-tc .ft small i{font-style:normal;color:#6b777c;margin:0 2px}
.hub-tc .ft b{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;background:#1c3545;color:#fff;font-weight:600;letter-spacing:.08em;white-space:nowrap;border-radius:0}
.hub-out{display:block;font-size:15px;line-height:1.7;color:#3b5566}
.hub-out i{display:inline-block;margin-right:8px;padding:0 7px;background:#efe9d8;font-style:normal;font-size:15px;color:#6a5a2c}
.hub-tc .hub-out{margin-top:-10px;padding-bottom:14px}
.hub-feat .hub-out{margin:-12px 0 22px}
.hub-tc:hover{transform:translateY(-3px)}
.hub-tc:hover .ft b{background:var(--ac)}
.hub-feat:focus-visible,.hub-tc:focus-visible{outline:3px solid #ba8434;outline-offset:4px}
.hub6-n1 .hub-tc{min-height:0}
.hub6-n1 .hub-tc h3{min-height:0}

/* 公部門資源（純文字） */
.hub6 .hub-res{margin-top:48px;padding:24px 4px 4px;border-radius:0;background:none;border:0;border-top:1px solid rgba(149,119,55,.55)}
.hub6 .hub-res h2{font-family:var(--h-serif);font-weight:400;font-size:22px;letter-spacing:.06em;margin:0 0 10px}
.hub6 .hub-res ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 32px;font-size:16px;line-height:1.85;color:var(--h-muted)}

/* 深色模式 */
html[data-theme="dark"] .hub-page{color:#e6e1d6}
html[data-theme="dark"] .hub6 .tt-light{display:none}
html[data-theme="dark"] .hub6 .tt-dark{display:inline-block}
html[data-theme="dark"] .hub6-hero{background:#16293a;border-bottom-color:#8f7437}
html[data-theme="dark"] .hub6-body{background:#10212b}
html[data-theme="dark"] .hub6-gl{color:#e6e1d6}
html[data-theme="dark"] .hub6-gl em{color:#d8bf80}
html[data-theme="dark"] .hub6-gl::after{background:rgba(216,191,128,.4)}
html[data-theme="dark"] .hub6 .hub-lbl{color:#f1ece1}
html[data-theme="dark"] .hub-feat{background:#182f3b;border-color:#d8bf80;outline-color:rgba(216,191,128,.4);color:#e6e1d6}
html[data-theme="dark"] .hub-feat .k{color:#d8bf80}
html[data-theme="dark"] .hub-feat ul{color:#cdd5d8}
html[data-theme="dark"] .hub-feat li::before{background:#d8bf80}
html[data-theme="dark"] .hub-feat .go{background:#d8bf80;color:#10171d}
html[data-theme="dark"] .hub-tc{background:#182f3b;border-color:#33424d;border-left-color:var(--ac);color:#e6e1d6}
html[data-theme="dark"] .hub-tc .who,html[data-theme="dark"] .hub-tc .ft small em{color:#d8bf80}
html[data-theme="dark"] .hub-tc::after{background:rgba(255,255,255,.05)}
@supports (color:color-mix(in srgb,red,blue)){html[data-theme="dark"] .hub-tc{border-left-color:color-mix(in srgb,var(--ac) 62%,#fff)}
  html[data-theme="dark"] .hub-tc .who,html[data-theme="dark"] .hub-tc .ft small em{color:color-mix(in srgb,var(--ac) 28%,#fff)}
  html[data-theme="dark"] .hub-tc li::before{background:color-mix(in srgb,var(--ac) 50%,#fff)}
  html[data-theme="dark"] .hub-tc::after{background:color-mix(in srgb,var(--ac) 30%,#182f3b);opacity:.7}}
html[data-theme="dark"] .hub-tc ul,html[data-theme="dark"] .hub-tc .ft small{color:#cdd5d8}
html[data-theme="dark"] .hub-out{color:#cdd5d8}
html[data-theme="dark"] .hub-out i{background:rgba(216,191,128,.14);color:#d8bf80}
html[data-theme="dark"] .hub-tc .ft{border-top-color:#33424d}
html[data-theme="dark"] .hub-tc .ft b{background:#d8bf80;color:#10171d}
html[data-theme="dark"] .hub-tc:hover .ft b{background:#e6d19c}
html[data-theme="dark"] .hub6 .hub-res{border-top-color:rgba(216,191,128,.45)}
html[data-theme="dark"] .hub6 .hub-res h2{color:#f1ece1}
html[data-theme="dark"] .hub6 .hub-res ul{color:#b9c3c8}

/* 平板 */
@media(max-width:1180px){
  .hub6 .hub-top{grid-template-columns:1fr;align-items:start}
  .hub6-paws{left:auto;right:4%;top:10px}
  .hub6 .hub-tcs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hub6 .hub-tcs.hub6-n3 .hub-tc:last-child{grid-column:1/-1;min-height:0}
  .hub6 .hub-tcs.hub6-n1{grid-template-columns:1fr}
}
/* 手機：卡片精簡為對象、標題、一句話、時間、按鈕 */
@media(max-width:640px){
  .hub6-hero{padding:16px 0 36px}
  .hub6-hero .studio-breadcrumb{margin-bottom:18px}
  .hub6-paws{display:none}
  .hub6 .hub-top h1{font-size:38px;margin:4px 0 10px}
  .hub6 .hub-top p{font-size:16px;line-height:1.85}
  .hub6 .hub-trust{grid-template-columns:1fr;margin-top:22px}
  .hub6 .hub-trust div,.hub6 .hub-trust div+div{display:grid;grid-template-columns:140px 1fr;align-items:baseline;gap:6px;padding:11px 0;border-left:0}
  .hub6 .hub-trust div+div{border-top:1px solid rgba(224,199,137,.28)}
  .hub6 .hub-trust b{font-size:18px;margin:0}
  .hub-feat{padding:22px 20px 20px;outline-offset:4px}
  .hub-feat .k,.hub-feat h2{padding-right:92px}
  .hub-feat h2{font-size:26px}
  .hub-feat ul{max-width:100%;margin-bottom:18px}
  .hub-feat .go{width:100%}
  .hub-feat .pic img{right:8px;top:12px;bottom:auto;width:88px;height:88px}
  .hub6-body{padding:38px 0 52px}
  .hub6 .hub-lbl{margin-bottom:22px}
  .hub6 .hub-tcs,.hub6 .hub-tcs.hub6-n3,.hub6-duo{grid-template-columns:1fr;gap:14px}
  .hub6 .hub-tcs.hub6-n3 .hub-tc:last-child{grid-column:auto}
  .hub6-group+.hub6-duo,.hub6-duo,.hub6-duo+.hub6-group{margin-top:30px}
  .hub6-duo{gap:30px}
  .hub-tc{min-height:0;padding:18px 16px 16px 18px;gap:6px}
  .hub-tc::after{width:92px;height:92px}
  .hub-tc .pic img{width:64px;height:64px;right:4px;top:4px}
  .hub-tc .who{max-width:calc(100% - 70px)}
  .hub-tc h3{font-size:20px;min-height:0;max-width:calc(100% - 66px)}
  .hub-tc ul{padding-bottom:10px}
  .hub-tc li:nth-child(n+2){display:none}
  .hub-tc .ft{padding-top:12px}
  .hub-tc .ft small em{font-size:23px}
  .hub6 .hub-res ul{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.hub-feat,.hub-tc{transition:none}.hub-feat:hover,.hub-tc:hover{transform:none}}
.motion-off .hub-feat,.motion-off .hub-tc{transition:none}
.hub-page .pic img.tt-dark{display:none!important}
html[data-theme="dark"] .hub-page .pic img.tt-light{display:none!important}
html[data-theme="dark"] .hub-page .pic img.tt-dark{display:inline-block!important}

html[data-theme="dark"] .hub-tc .ft small i{color:#9fb0b8}
@media(max-width:900px){.hub6 .hub-top .studio-en{font-size:21px}}
