/* 全站操作精修：不以文字符號畫圖示，HTML 只保留語意與操作名稱。 */
.icon-code { --icon: url('../icons/code.svg'); }
.icon-cart { --icon: url('../icons/cart.svg'); }
.icon-search { --icon: url('../icons/search.svg'); }
.icon-pin { --icon: url('../icons/pin.svg'); }
.icon-building { --icon: url('../icons/building.svg'); }
.nav-caret { position: relative; width: 11px; height: 11px; display: inline-block; flex: 0 0 auto; transition: transform .2s; }
.nav-caret::before { content: ''; position: absolute; width: 5px; height: 5px; top: 1px; left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-group > button[aria-expanded=true] .nav-caret { transform: rotate(180deg); }
.nav-group > button { gap: 9px; }
.nav-group.has-current > button { color: #effff9; }
.nav-group.has-current > button::after { content: ''; position: absolute; left: 0; right: 20px; height: 2px; bottom: 1px; border-radius: 2px; background: #99e2d8; }
.subnav { top: calc(100% + 22px); min-width: 205px; max-height: none; overflow: visible; padding: 9px; border-radius: 16px; border-color: #b4e7df66; background: linear-gradient(140deg, #214e50f7, #0a292dfc); box-shadow: inset 0 1px #e7fff52e, 0 22px 45px #0005; }
.subnav a { padding: 12px 14px; min-height: 44px; line-height: 1.5; border-radius: 9px; white-space: normal; color: #c8e5df; transition: background .2s, color .2s; }
.subnav a::after { display: none; }
.subnav a:hover, .subnav a:focus-visible, .subnav a[aria-current=page] { color: #f3fff9; background: #c6f6e613; }
.subnav a:focus-visible { outline-offset: -2px; }
.nav-support > .subnav { left: auto; right: -10px; }
.nav-services > .services-panel { width: 730px; left: 50%; transform: translateX(-50%); padding: 22px; }
.services-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 17px; margin-bottom: 18px; border-bottom: 1px solid #bee8df29; }
.services-panel-heading .subnav-title { font-size: 15px; font-weight: 600; color: #e9fff5; margin: 0; }
.subnav .services-overview { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; padding: 8px 10px; min-height: 34px; color: #b4e4d7; }
.services-overview .ui-icon { width: 14px; height: 14px; }
.services-panel-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.services-industry { border-left: 1px solid #c6eddf24; padding-left: 18px; }
.services-panel .subnav-label { font-size: 11px; letter-spacing: .1em; color: #a7cfc2; margin: 0 0 10px 7px; }
.services-primary .service-menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.services-industry .service-menu-list { display: grid; gap: 6px; }
.subnav .service-menu-link { display: flex; align-items: flex-start; gap: 11px; padding: 12px 8px; min-height: 70px; }
.service-menu-link > .ui-icon { width: 23px; height: 23px; color: #9bddcc; margin-top: 1px; }
.service-menu-link > span:last-child { min-width: 0; }
.service-menu-link strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 600; }
.service-menu-link small { display: block; font-size: 11px; line-height: 1.7; letter-spacing: 0; margin: 5px 0 0; padding: 0; border: 0; color: #accfc3; }
.menu-icon { position: relative; width: 18px; height: 14px; display: inline-block; flex: 0 0 auto; }
.menu-icon::before, .menu-icon::after, .menu-icon i { content: ''; position: absolute; height: 1.5px; width: 18px; left: 0; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-icon::before { top: 1px; }
.menu-icon i { top: 6px; }
.menu-icon::after { top: 11px; }
.menu-toggle[aria-expanded=true] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded=true] .menu-icon i { opacity: 0; }
.back-top { width: 54px; height: 54px; border-radius: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); right: 22px; display: grid; place-items: center; color: #e5fff4; background: radial-gradient(circle at 30% 15%, #a9e8d54d, transparent 68%), linear-gradient(145deg, #245d5ee8, #0b2b30f2); border: 1px solid #b0ede394; box-shadow: inset 0 1px #fff6, 0 6px 0 #061c22, 0 12px 24px #0005; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, visibility .2s, transform .2s, background .2s; }
.back-top.visible { visibility: visible; transform: translateY(0); }
.back-top:hover { background: linear-gradient(145deg, #9de6d8, #56bfc3); color: #073e40; transform: translateY(-3px); }
.back-top:focus-visible { outline-color: #d1fff0; outline-offset: 5px; }
.back-top-ring { position: absolute; inset: 4px; border-radius: 50%; background: conic-gradient(#c1fae7 calc(var(--scroll-progress, 0) * 1turn), #bce4d51a 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0); pointer-events: none; }
.back-top-icon { position: relative; width: 22px; height: 24px; background: linear-gradient(currentColor, currentColor) center top / 16px 1.6px no-repeat; }
.back-top-icon::before { content: ''; width: 9px; height: 9px; border-left: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: rotate(45deg); position: absolute; top: 7px; left: 5.5px; }
.back-top-icon::after { content: ''; height: 15px; width: 1.8px; border-radius: 1px; background: currentColor; position: absolute; left: 10.1px; top: 7px; }
.back-top-hint { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(5px, -50%); padding: 7px 12px; border: 1px solid #9bd9c955; border-radius: 8px; color: #d8f5e9; background: #0a272be8; box-shadow: 0 7px 18px #0003; font-size: 11px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s; }
.back-top:is(:hover, :focus-visible) .back-top-hint { opacity: 1; visibility: visible; transform: translate(0, -50%); }

.text-link { transition: color .2s, border-color .2s; }
.expertise-card h3 { text-wrap: balance; }
.pearl-section :is(a, button, summary):focus-visible, .plan-card a:focus-visible, .reading-container a:focus-visible, .service-body .content-card:focus-visible, #contact-form :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #155b5e; outline-offset: 4px; }
#contact-form input[type=checkbox] { appearance: auto; width: 18px; height: 18px; min-height: 18px; padding: 0; border: 0; border-radius: 3px; box-shadow: none; flex-shrink: 0; accent-color: #247e79; }
#contact-form .service-options label { min-height: 44px; gap: 9px; }
#contact-form .consent { min-height: 44px; padding-block: 6px; line-height: 1.9; }
#contact-form .consent input { margin-top: 3px; }
.dialog-close { width: 44px; height: 44px; padding: 0; right: 12px; top: 12px; display: grid; place-items: center; border-radius: 50%; background: #b1e7d70d; color: #dcfff0; }
.dialog-close:hover, .dialog-close:focus-visible { background: #b1e7d721; color: #fff; }
.close-icon { width: 18px; height: 18px; position: relative; display: inline-block; }
.close-icon::before, .close-icon::after { content: ''; position: absolute; top: 8px; left: 0; width: 18px; height: 1.6px; border-radius: 1px; background: currentColor; }
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
summary::after { content: ''; width: 14px; height: 14px; margin-top: 5px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; }
details[open] summary::after { content: ''; background-size: 14px 1.5px, 1.5px 0; }
@media (max-width: 960px) and (min-width: 851px) {
  .nav { gap: 9px; }
  .nav-group > button { gap: 6px; }
  .nav-services > .services-panel { width: 710px; }
}
@media (min-width: 851px) and (max-height: 560px) {
  .nav-services > .services-panel { padding: 16px 20px; }
  .services-panel-heading { padding-bottom: 10px; margin-bottom: 12px; }
  .subnav .service-menu-link { min-height: 60px; padding-block: 9px; }
}
@media (max-width: 850px) {
  .nav { top: 78px; padding: 18px 24px 28px; max-height: calc(100dvh - 78px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #74b9ac66 transparent; }
  .nav-group > button { padding: 12px 10px; border-radius: 8px; }
  .nav-group.has-current > button::after { display: none; }
  .nav-group.has-current > button { background: #a8e6d509; }
  .subnav { min-width: 0; margin: 4px 0 8px 12px; padding: 3px 0 3px 13px; border-radius: 0; border: 0; border-left: 1px solid #a2d9c52b; background: transparent; box-shadow: none; max-height: none; overflow: visible; }
  .subnav a { min-height: 44px; padding: 11px 12px; }
  .nav-services > .services-panel { width: auto; left: auto; transform: none; padding: 12px 0 8px 12px; }
  .services-panel-heading { gap: 12px; padding: 0 0 12px; margin-bottom: 16px; }
  .services-panel-heading .subnav-title { font-size: 13px; }
  .services-panel-columns { grid-template-columns: 1fr; gap: 22px; }
  .services-industry { border-left: 0; padding: 16px 0 0; border-top: 1px solid #c6eddf24; }
  .services-industry .service-menu-list { grid-template-columns: 1fr 1fr; }
  .services-panel .subnav-label { font-size: 11px; margin-left: 7px; }
  .service-menu-link strong { font-size: 14px; }
  .service-menu-link small { font-size: 11px; }
  .nav .nav-cta { width: fit-content; max-width: 100%; align-self: flex-start; margin: 10px 0 0 10px; min-height: 44px; padding: 10px 17px; justify-content: flex-start; gap: 12px; font-size: 14px; border-radius: 24px; box-shadow: inset 0 1px #fff8, 0 2px 0 #3d7e80; }
  .nav .nav-cta .ui-icon { width: 17px; height: 17px; }
}
@media (max-width: 600px) {
  .nav { padding-inline: 18px; }
  .menu-toggle { min-height: 44px; gap: 12px; padding: 10px 14px; }
  .services-primary .service-menu-list, .services-industry .service-menu-list { grid-template-columns: 1fr; gap: 3px; }
  .subnav .service-menu-link { min-height: 62px; padding: 10px 8px; }
  .back-top { width: 48px; height: 48px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .back-top-icon { transform: scale(.9); }
  .back-top-hint { display: none; }
  
  .text-link, .filter-bar button { min-height: 44px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-caret, .menu-icon::before, .menu-icon::after, .menu-icon i, .back-top, .back-top-hint, .text-link, .subnav a { transition: none; }
}
