:root {
  color-scheme: light;
  --green: #285943;
  --green-dark: #193f30;
  --green-light: #edf4ec;
  --ink: #25362d;
  --muted: #5c6a61;
  --line: #dde6dc;
  --paper: #fff;
  --canvas: #f6f8f3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid #a55d13; outline-offset: 4px; }
a:hover { color: var(--green); }
.container { width: min(100% - 3rem, 1160px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .75rem 1.25rem; background: var(--paper); border: 2px solid var(--green); border-radius: .5rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.utility { background: var(--green-dark); color: #fff; font-size: .875rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.utility-links { display: flex; align-items: center; gap: 1.5rem; }
.utility a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.utility a:hover { color: #e0edcf; text-decoration: underline; }
.site-header { position: relative; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-mark { width: 2.75rem; height: 2.75rem; border: 1px solid #cddcc8; background: #e4efd9 url("../images/Banner.jpg") left center / auto 100% no-repeat; border-radius: .85rem; }
.brand-name { display: block; font-size: 1.7rem; line-height: 1.3; letter-spacing: .14em; font-weight: 700; color: var(--green-dark); }
.brand-caption { display: block; margin-top: .25rem; font-size: .75rem; color: var(--muted); letter-spacing: .14em; }
.main-nav ul { display: flex; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem .65rem; border-radius: .5rem; font-size: .9375rem; white-space: nowrap; }
.main-nav a:hover { background: var(--green-light); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: .5rem; min-height: 2.875rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; color: var(--green); cursor: pointer; }
.hero { padding-block: 2rem 2.5rem; }
.hero-banner { overflow: hidden; border: 1px solid #dbe6d6; border-radius: 1rem; background: #e8f2dd; }
.hero-banner img { width: 100%; aspect-ratio: 20 / 3; object-fit: contain; }
.hero-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: 2rem 1.5rem; }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin: 0 0 .4rem; color: var(--green); font-size: .8125rem; letter-spacing: .12em; font-weight: 700; }
.eyebrow::before { content: ""; width: 1.25rem; height: 2px; background: currentColor; }
h1 { margin: 0; font-size: clamp(1.8rem, 3.7vw, 2.5rem); line-height: 1.4; letter-spacing: .03em; font-weight: 700; }
.intro { margin: 0 0 .3rem; color: var(--muted); font-size: .9375rem; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service { display: flex; align-items: center; gap: 1rem; min-height: 6rem; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; transition: border-color .15s, background-color .15s; }
.service:hover { border-color: #83a17d; background: #f0f6ed; }
.service-primary { color: #fff; background: var(--green); border-color: var(--green); }
.service-primary:hover { color: #fff; background: var(--green-dark); }
.service-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green-light); color: var(--green); }
.service-primary .service-icon { background: #ffffff1f; color: #fff; }
.service-text { min-width: 0; }
.service strong { display: block; font-size: 1.125rem; }
.service small { display: block; color: var(--muted); font-size: .8125rem; }
.service-primary small { color: #e4efdf; }
.service-arrow { margin-left: auto; width: 1.1rem; height: 1.1rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; align-items: start; gap: 1.75rem; padding-bottom: 3.5rem; }
.announcements { display: grid; min-width: 0; gap: 1.75rem; }
.panel { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: .875rem; }
.section-heading { display: flex; align-items: center; gap: .75rem; padding: 1.4rem 1.5rem 1rem; }
.section-heading h2 { margin: 0; font-size: 1.375rem; line-height: 1.5; letter-spacing: .05em; }
.section-heading svg { color: var(--green); }
.section-subtitle { margin-left: auto; color: var(--muted); font-size: .75rem; }
.news-list { margin: 0; padding: 0 1.5rem .5rem; list-style: none; }
.news-item { display: grid; grid-template-columns: 6.25rem 2.75rem minmax(0, 1fr); align-items: baseline; gap: .75rem; padding-block: 1rem; border-top: 1px solid #e7ece5; }
.news-item time { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tag { padding: .1rem .45rem; border-radius: .25rem; background: var(--green-light); color: #43603b; font-size: .75rem; text-align: center; white-space: nowrap; }
.tag-notice { color: #7c591e; background: #f8f1df; }
.news-title { min-width: 0; font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
a.news-title { display: block; margin-block: -.4rem; padding-block: .4rem; }
a.news-title:hover { text-decoration: underline; text-underline-offset: .25em; }
.sidebar { display: grid; gap: 1.25rem; }
.sidebar .section-heading { padding-bottom: .8rem; }
.sidebar .section-heading h2 { font-size: 1.125rem; }
.resource-list { list-style: none; margin: 0; padding: 0 1.25rem .75rem; }
.resource-list li + li { border-top: 1px solid #e7ece5; }
.resource-list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.5rem; padding-block: .75rem; font-size: .9375rem; overflow-wrap: anywhere; }
.resource-list svg { width: .95rem; height: .95rem; color: #697d65; }
.contact-card { padding: 1.5rem; border-radius: .875rem; background: #e9f0e3; border: 1px solid #dbe5d3; }
.contact-card h2 { margin: 0 0 1rem; font-size: 1.125rem; }
.contact-label { margin: 1rem 0 .15rem; font-size: .8125rem; color: #55654c; }
.contact-phone { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--green-dark); font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.contact-address { margin: .25rem 0; font-size: .9375rem; font-style: normal; }
.contact-route { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin-top: .75rem; color: var(--green); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.contact-route svg { width: 1rem; height: 1rem; }
.site-footer { border-top: 1px solid var(--line); background: #edf2e9; }
.footer-inner { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding-block: 1.75rem 1.5rem; }
.footer-name { color: var(--green); font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #4c5c48; font-size: .875rem; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.legal { margin: 0; padding-block: 1.1rem 1.75rem; border-top: 1px solid #d6e0d0; font-size: .75rem; line-height: 1.9; color: #56634f; }
.mobile-actions { display: none; }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; gap: .5rem; padding-block: 1rem .5rem; }
  .brand { margin-bottom: .25rem; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: space-between; }
  .main-nav a { padding-inline: .75rem; }
  .hero-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 1.25rem; }
  .service { padding-inline: 1.1rem; gap: .75rem; }
  .service small { font-size: .75rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 1rem; }
  .container { width: calc(100% - 2rem); }
  .utility-inner { min-height: 2.5rem; }
  .utility-location { display: none; }
  .utility-links { width: 100%; justify-content: space-between; gap: .75rem; }
  .utility a { min-height: 2.5rem; }
  .header-inner { flex-wrap: wrap; min-height: 5rem; padding-block: 1rem; gap: 0; }
  .brand { margin: 0; }
  .brand-name { font-size: 1.4rem; }
  .brand-caption { font-size: .6875rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .main-nav { margin-top: 1rem; }
  .main-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .main-nav a { justify-content: flex-start; min-height: 3rem; padding-inline: .875rem; background: #f4f7f1; }
  .js .menu-toggle { display: flex; }
  .js .main-nav:not(.is-open) { display: none; }
  .hero { padding-block: 1.25rem 1.5rem; }
  .hero-banner { border-radius: .6rem; }
  .hero-heading { padding-block: 1.25rem; }
  .intro { font-size: .875rem; }
  .services { gap: .6rem; }
  .service { flex-direction: column; justify-content: center; gap: .5rem; min-height: 7.5rem; padding: 1rem .5rem; text-align: center; }
  .service-icon { width: 2.4rem; height: 2.4rem; }
  .service strong { font-size: .9375rem; white-space: nowrap; }
  .service small, .service-arrow { display: none; }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; }
  .announcements { gap: 1.25rem; }
  .section-heading { padding: 1.1rem 1rem .8rem; }
  .section-heading h2 { font-size: 1.25rem; }
  .news-list { padding: 0 1rem .25rem; }
  .news-item { grid-template-columns: 6.25rem max-content; column-gap: .75rem; row-gap: .5rem; padding-block: 1rem; }
  .news-title { grid-column: 1 / -1; font-size: 1rem; line-height: 1.8; }
  a.news-title { min-height: 2.75rem; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
  .resource-list { padding-inline: 1rem; }
  .contact-card { padding: 1.25rem; }
  .contact-phone { font-size: 1.25rem; }
  .footer-inner { flex-direction: column; gap: .5rem; padding-block: 1.5rem 1rem; }
  .footer-contact { display: block; }
  .footer-contact span { display: block; }
  .legal { font-size: .75rem; }
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-actions { position: fixed; inset: auto 0 0; z-index: 15; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #1c3d2410; background: #fff; }
  .mobile-actions a { display: flex; justify-content: center; align-items: center; gap: .5rem; min-height: 3.25rem; border-radius: .5rem; color: var(--green); font-size: .8125rem; font-weight: 700; }
  .mobile-actions .mobile-register { background: var(--green); color: #fff; }
  .mobile-actions svg { width: 1.125rem; height: 1.125rem; }
}

@media (max-width: 440px) {
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .section-subtitle { display: none; }
  .menu-toggle { gap: .35rem; padding-inline: .65rem; font-size: .875rem; }
  .brand { gap: .6rem; }
  .brand-name { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: #fff; padding: 0; }
  .utility, .menu-toggle, .main-nav, .services, .mobile-actions, .sidebar, .skip-link { display: none !important; }
  .container { width: 100%; }
  .content-layout { display: block; }
  .panel { break-inside: avoid; margin-bottom: 1rem; }
  .site-header, .site-footer { background: #fff; }
}
