:root {
  color-scheme: light;
  --navy: #23477c;
  --blue: #286cb0;
  --ink: #292d33;
  --muted: #657080;
  --paper: #fff;
  --soft: #f5f7fa;
  --max: 1180px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.8; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: .5rem 1rem; color: #fff; background: var(--navy); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 5; background: #fff; box-shadow: 0 2px 12px #1f35500c; }
.header-inner { width: min(var(--max), calc(100% - 48px)); min-height: 96px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 16px; flex: 0 0 auto; color: var(--blue); font-size: 28px; font-weight: 700; letter-spacing: .06em; }
.brand img { width: 74px; height: 64px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: clamp(28px, 5vw, 68px); }
.primary-nav a { position: relative; padding: 10px 0; color: #303846; font-size: 16px; font-weight: 600; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--blue); }
.primary-nav a.active::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: var(--blue); content: ""; }
.menu-toggle { display: none; }
.hero-slider { position: relative; overflow: hidden; background: #fff; }
.slides { position: relative; width: min(100%, 1024px); margin-inline: auto; aspect-ratio: 1.505; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .65s ease; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide.is-active { opacity: 1; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; display: flex; gap: 10px; transform: translateX(-50%); }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #ffffff80; box-shadow: 0 1px 5px #0003; cursor: pointer; }
.slider-dots button.is-active { background: var(--blue); }
.section-wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(42px, 7vw, 96px); padding-top: 100px; padding-bottom: 108px; }
.intro-image img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.intro-copy { max-width: 500px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { margin: 0 0 22px; color: var(--navy); font-size: clamp(34px, 4vw, 52px); line-height: 1.35; letter-spacing: .03em; }
.intro h1 span { font-size: .72em; }
.intro-copy > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { color: #555d68; line-height: 2.15; }
.button-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 20px; padding: 11px 22px; border: 1px solid var(--navy); color: var(--navy); font-weight: 600; transition: color .2s, background .2s; }
.button-link:hover { color: #fff; background: var(--navy); }
.page-banner { min-height: 300px; display: grid; place-items: center; padding: 44px 24px; text-align: center; color: var(--navy); background: linear-gradient(115deg, #f4f7fb 0%, #e5edf7 48%, #f8f9fb 100%); }
.page-banner p { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.page-banner h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: .04em; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding-top: 88px; padding-bottom: 100px; }
.about-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-copy h2, .service-lead h2 { margin: 0 0 20px; color: var(--navy); font-size: clamp(30px, 3.6vw, 44px); }
.about-copy h1 { margin: 0 0 18px; color: var(--navy); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.4; text-align: center; }
.about-copy h2 { margin-bottom: 18px; font-size: 28px; }
.about-copy > p:not(.eyebrow) { margin-bottom: 16px; }
.service { padding-top: 72px; padding-bottom: 104px; }
.service-lead { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.service-lead > p:last-child { color: #555d68; line-height: 2; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.service-card { position: relative; padding: 34px 30px; border-top: 3px solid var(--blue); background: var(--soft); }
.card-number { display: block; margin-bottom: 14px; color: #7f9cbd; font-size: 13px; font-weight: 700; letter-spacing: .15em; }
.service-card h3 { margin-bottom: 18px; color: var(--navy); font-size: 22px; }
.service-card p, .service-card li { color: #59616d; line-height: 1.9; }
.service-card ul, .service-card ol { padding-left: 1.25em; }
.service-card li + li { margin-top: 8px; }
.service-card img { width: 100%; aspect-ratio: 1.5; margin-top: 22px; object-fit: cover; }
.service-main { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0; }
.service-main h1 { margin: 0 0 .67em; color: var(--ink); font-size: 2em; }
.service-main h2 { margin: .83em 0; color: var(--ink); font-size: 1.5em; }
.service-main p, .service-main li { color: #333; }
.service-intro, .service-section { margin-bottom: 18px; }
.service-main ul, .service-main ol { padding-left: 40px; }
.site-footer { color: #fff; background: linear-gradient(110deg, #1e477d, #3b7eb5); }
.footer-inner { width: min(var(--max), calc(100% - 48px)); min-height: 176px; margin: auto; display: grid; grid-template-columns: 1.15fr 1fr .8fr; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 24px; }
.footer-inner > div + div { padding-left: 38px; border-left: 1px solid #ffffff55; }
.footer-inner h2 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.footer-inner p { margin: 0; color: #eef5fc; font-size: 14px; }
.footer-inner a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 36px); min-height: 76px; }
  .brand { gap: 10px; font-size: 22px; }
  .brand img { width: 58px; height: 52px; }
  .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 24px 18px; background: #fff; box-shadow: 0 8px 14px #1f35501a; }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 12px 4px; }
  .primary-nav a.active::after { right: auto; width: 44px; }
  .slides { width: 100%; aspect-ratio: 1.505; }
  .section-wrap { width: calc(100% - 40px); }
  .intro, .about { grid-template-columns: 1fr; gap: 32px; padding-top: 54px; padding-bottom: 62px; }
  .intro-copy { max-width: none; }
  .intro h1 { font-size: 38px; }
  .page-banner { min-height: 220px; }
  .service { padding-top: 54px; padding-bottom: 64px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }
  .footer-inner { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
  .footer-inner { text-align: left; align-items: flex-start; }
  .footer-inner > div + div { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
