:root {
  --ink: #172321;
  --muted: #596965;
  --paper: #f7f4ec;
  --surface: #ffffff;
  --green: #0f5b4a;
  --green-dark: #083e33;
  --gold: #d59a24;
  --line: #dce4df;
  --shadow: 0 18px 50px rgba(21, 55, 47, .1);
  --radius: 22px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.75; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: white; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(15, 91, 74, .12); background: rgba(247, 244, 236, .94); backdrop-filter: blur(14px); }
.header-inner { width: min(1240px, calc(100% - 32px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 54px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.site-nav > a, .site-nav summary { color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav details { position: relative; }
.site-nav details > div { position: absolute; top: calc(100% + 14px); left: 50%; min-width: 180px; padding: 10px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.site-nav details > div a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.site-nav details > div a:hover { background: #edf5f1; }
.menu-button { display: none; border: 1px solid var(--green); border-radius: 10px; padding: 8px 12px; background: transparent; color: var(--green); font-weight: 700; }

.home-hero { overflow: hidden; padding: 94px 0 88px; background: radial-gradient(circle at 80% 10%, rgba(213,154,36,.22), transparent 28%), linear-gradient(145deg, #f7f4ec 60%, #e6efe9); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
.home-hero h1 { margin-bottom: 18px; font-family: serif; font-size: clamp(48px, 6.6vw, 80px); letter-spacing: -.04em; }
.home-hero h1 span { color: var(--green); }
.hero-motto { margin: 0 0 14px; color: var(--green); font-size: clamp(19px, 2.3vw, 25px); font-weight: 900; letter-spacing: .04em; }
.lead { max-width: 700px; color: var(--muted); font-size: 19px; }
.button-row, .service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--green); color: white; }
.button.secondary { border: 1px solid var(--green); color: var(--green); background: transparent; }
.hero-identity { overflow: hidden; border-radius: 28px; background: var(--green-dark); color: white; box-shadow: var(--shadow); }
.logo-frame { display: grid; min-height: 350px; padding: 28px; place-items: center; background: #fff; }
.logo-frame img { width: min(100%, 410px); border-radius: 0; }
.identity-copy { padding: 28px 32px 12px; }
.identity-copy p { margin: 0; color: #a9c7bd; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.identity-copy strong { display: block; margin-top: 2px; font-family: serif; font-size: 26px; line-height: 1.35; }
.hero-identity > a { display: inline-block; margin: 0 32px 28px; color: #f5c969; font-weight: 800; }

.home-section { padding-block: 88px; }
.section-heading { margin-bottom: 34px; }
.section-heading h2, .accent-section h2, .contact-strip h2 { font-family: serif; font-size: clamp(32px, 5vw, 54px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.7); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card span { color: var(--gold); font-weight: 900; }
.feature-card h3 { margin: 42px 0 8px; font-size: 22px; }
.feature-card p { color: var(--muted); }
.accent-section { padding: 82px 0; background: var(--green); color: white; }
.accent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.accent-section .eyebrow { color: #f5c969; }
.accent-section h2 span { color: #f5c969; }
.text-link { color: white; font-weight: 800; }
.contact-strip { margin-block: 76px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 28px; background: white; box-shadow: var(--shadow); }

.page-hero { padding: 76px 0 54px; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, #f7f4ec, #eaf1ed); }
.page-hero h1 { margin: 0; font-family: serif; font-size: clamp(42px, 6vw, 68px); }
.content-card { margin-block: 46px 80px; padding: clamp(24px, 5vw, 58px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.migrated-content h2 { margin-top: 44px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 26px; }
.migrated-content h2:first-child { margin-top: 0; }
.migrated-content p, .migrated-content .paragraph { max-width: 900px; }
.migrated-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.migrated-content td, .migrated-content th { padding: 10px; border: 1px solid var(--line); }
.migrated-content hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }
.migrated-content iframe { max-width: 100%; }
.officer-photo { display: block; width: 350px; height: 561px; max-width: 100%; object-fit: cover; object-position: center; }
.notice { padding: 24px; border-left: 5px solid var(--gold); border-radius: 12px; background: #fff8e7; }
.notice strong { font-size: 20px; }
.assistance-intro { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.assistance-intro h2 { margin-bottom: 10px; font-size: clamp(28px, 4vw, 40px); }
.assistance-intro .lead { margin: 0 0 24px; }
.assistance-steps { display: grid; gap: 12px; margin: 0; padding-left: 28px; font-size: 18px; font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(16, 42, 37, .08); }
.contact-card h3 { margin-bottom: 20px; font-size: 22px; }
.contact-card p { margin: 8px 0; }
.contact-card a { color: var(--green); font-weight: 800; overflow-wrap: anywhere; }
.privacy-note { margin-top: 24px; padding: 22px 24px; border-left: 5px solid var(--gold); border-radius: 12px; background: #fff8e7; }
.privacy-note strong { font-size: 20px; }
.privacy-note p { margin: 6px 0 0; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.site-footer { padding: 50px 0 24px; background: #102a25; color: #dbe9e4; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 70px; padding: 18px; flex-direction: column; align-items: stretch; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav details > div { position: static; transform: none; margin-top: 8px; box-shadow: none; }
  .hero-grid, .accent-grid { grid-template-columns: 1fr; gap: 42px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .home-hero { padding: 64px 0; }
  .home-hero h1 { font-size: 50px; }
  .logo-frame { padding: 18px; }
  .identity-copy { padding: 24px 24px 10px; }
  .hero-identity > a { margin: 0 24px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .contact-strip { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-card { margin-top: 24px; border-radius: 14px; }
  .officer-photo { width: 100%; height: auto; aspect-ratio: 350 / 561; }
}

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