/* 由 scripts/apply-page-hero.cjs 使用：全站 hero＋返回條樣式 */
html:root body:is(body,#otc-compact-layout) .otc-backbar{background:#f9f6ee!important;border-bottom:1px solid #e4dccb!important;font-size:13px!important;line-height:1.4!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-in{max-width:1180px!important;margin:0 auto!important;padding:8px 20px!important;display:flex!important;align-items:center!important;gap:14px!important;flex-wrap:wrap!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-back{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:5px 12px!important;border:1px solid #1b263d!important;border-radius:4px!important;background:#fff!important;color:#1b263d!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-back:hover{background:#1b263d!important;color:#fff!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-back:focus-visible{outline:2px solid #ae9340!important;outline-offset:2px!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-up{color:#5b6472!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-up a{color:#74333a!important;text-decoration:underline!important;text-underline-offset:2px!important}
html:root body:is(body,#otc-compact-layout) .page-utility-bar .page-parent-link{display:inline-flex!important;align-items:center!important;padding:5px 12px!important;border:1px solid #1b263d!important;border-radius:4px!important;background:#fff!important;color:#1b263d!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important}
html:root body:is(body,#otc-compact-layout) .page-utility-bar .page-parent-link::before{content:"←"!important;margin-right:6px!important}
html:root body:is(body,#otc-compact-layout) .page-utility-bar .page-parent-link:hover{background:#1b263d!important;color:#fff!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero{position:relative!important;overflow:hidden!important;background:linear-gradient(120deg,#1b263d 0%,#22304b 62%,#1b263d 100%)!important;color:#f9f6ee!important;border-bottom:4px solid #ae9340!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-in{position:relative!important;max-width:1180px!important;margin:0 auto!important;padding:44px 20px 40px!important;padding-right:150px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-kicker{margin:0 0 12px!important;font-size:12px!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#ae9340!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero h1{margin:0!important;font-family:"Noto Serif TC","Songti TC",serif!important;font-size:clamp(28px,4.2vw,44px)!important;line-height:1.2!important;font-weight:700!important;color:#f9f6ee!important;letter-spacing:.02em!important;border:0!important;padding:0!important;background:none!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-sub{margin:12px 0 0!important;font-size:17px!important;line-height:1.55!important;font-weight:700!important;color:#e6d9ae!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-desc{margin:10px 0 0!important;max-width:760px!important;font-size:15px!important;line-height:1.75!important;color:rgba(249,246,238,.84)!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-desc a{color:#f3e3b0!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:22px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-btn{display:inline-flex!important;align-items:center!important;min-height:38px!important;padding:8px 16px!important;border-radius:4px!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;border:1px solid #ae9340!important;color:#f9f6ee!important;background:transparent!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-btn.oah-primary{background:#ae9340!important;color:#1b263d!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-btn:hover{background:#f9f6ee!important;color:#1b263d!important;border-color:#f9f6ee!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes{position:absolute!important;top:0!important;right:40px!important;bottom:0!important;display:flex!important;gap:0!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes i{display:block!important;width:42px!important;height:100%!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes i:first-child{background:#74333a!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes i:last-child{background:#ae9340!important;width:22px!important}
@media(max-width:700px){html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-in{padding:30px 18px 28px 26px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes{right:auto!important;left:0!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes i:first-child{width:5px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-stripes i:last-child{width:3px!important}
html:root body:is(body,#otc-compact-layout) .otc-backbar .obb-in{padding:7px 14px!important}}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-in.has-facts{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,520px)!important;gap:32px!important;align-items:center!important;padding-right:20px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-in.has-facts~.oah-stripes{display:none!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-facts>a{background:rgba(249,246,238,.07)!important;border-left:3px solid #ae9340!important;border-radius:4px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-facts>a:nth-child(2){border-left-color:#74333a!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-facts>a:nth-child(3){border-left-color:#5b9a88!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-facts>a:nth-child(4){border-left-color:#7e8faf!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-facts>a:hover{background:rgba(249,246,238,.14)!important}
@media(max-width:900px){html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-in.has-facts{grid-template-columns:1fr!important;gap:20px!important;padding-left:26px!important}}
html:root body:is(body,#otc-compact-layout) .services-hero .actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;width:auto!important;margin-top:18px!important}
html:root body:is(body,#otc-compact-layout) .services-hero .actions .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:0!important;padding:6px 14px!important;font-size:12px!important;line-height:1.4!important;border-radius:4px!important}
html:root body:is(body,#otc-compact-layout) .services-hero h1{font-family:"Noto Serif TC","Songti TC",serif!important;font-size:clamp(28px,4vw,42px)!important;line-height:1.15!important;font-weight:900!important;margin:6px 0 10px!important;color:#f9f6ee!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-actions{gap:8px!important;margin-top:18px!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-btn{min-height:0!important;padding:6px 14px!important;font-size:12px!important;line-height:1.4!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-btn.oah-dir{background:#f9f6ee!important;color:#1b263d!important;border-color:#f9f6ee!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-links{margin:10px 0 0!important;font-size:12px!important;color:rgba(249,246,238,.7)!important}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-links a{color:#e6d9ae!important;text-decoration:underline;text-underline-offset:2px}
html:root body:is(body,#otc-compact-layout) .otc-auto-hero .oah-links span{margin:0 6px}
html:root body:is(body,#otc-compact-layout) .services-hero .actions .btn-back{background:transparent!important;color:#f9f6ee!important;border:1px solid rgba(249,246,238,.6)!important}
html:root body:is(body,#otc-compact-layout) .services-hero .actions .btn-back:hover{background:#f9f6ee!important;color:#1b263d!important}

/* Hero 右側色塊：全站統一緊湊款（2026-12-04）。適用所有 .service-hero-panel；#hero-facts 另由 hero-facts.cjs 控制 */
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:6px!important;align-content:center!important;align-self:center!important;height:auto!important;min-height:0!important;padding:0!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts):has(>a:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a{position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:2px!important;min-height:0!important;height:auto!important;padding:8px 10px 8px 14px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:4px!important;background:rgba(255,255,255,.07)!important;color:#f9f6ee!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a:hover{background:rgba(255,255,255,.13)!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a::before{content:""!important;position:absolute!important;left:0!important;top:10px!important;width:2px!important;height:11px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#e8b84b!important;font-size:0!important;box-shadow:none!important;transform:none!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a:nth-child(4n+2)::before{background:#6fb7a8!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a:nth-child(4n+3)::before{background:#e0664f!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a:nth-child(4n+4)::before{background:#8ea3c0!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a::after{content:none!important;display:none!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a :is(strong,b,h3){display:block!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.4!important;font-weight:600!important;color:#fff!important;letter-spacing:0!important}
html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts)>a :is(span,small,p){display:block!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.45!important;font-weight:400!important;color:rgba(249,246,238,.82)!important}
@media(max-width:700px){html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts),html:root body:is(body,#otc-compact-layout) .service-hero-panel:not(#hero-facts):has(>a:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
