:root {
  --navy: #12304a;
  --navy-deep: #0b2236;
  --brick: #9e3f37;
  --gold: #c7983d;
  --green: #3f6f5a;
  --paper: #ffffff;
  --soft: #f4f6f7;
  --warm: #faf7f0;
  --ink: #17212b;
  --muted: #5d6974;
  --line: #d9e0e4;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-150%);
  background: #fff;
  color: var(--navy);
  padding: 10px 14px;
  border: 2px solid var(--navy);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f0b84f; outline-offset: 3px; }

.topbar { position: sticky; top: 0; z-index: 60; background: var(--navy-deep); color: #fff; font-size: 13px; }
.topbar .wrap { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar a { text-decoration: none; }
.utility-links { display: flex; align-items: center; gap: 20px; }
.utility-links a:hover { text-decoration: underline; }

header { position: sticky; top: 38px; z-index: 50; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.brand-copy { min-width: 0; line-height: 1.25; }
.brand-copy strong, .brand-copy span { display: block; }
.brand-copy strong { font-size: 14px; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.navlinks { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.navlinks > a { position: relative; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.navlinks > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: transparent; }
.navlinks > a:hover, .navlinks > a[aria-current="page"] { color: var(--brick); }
.navlinks > a[aria-current="page"]::after { background: var(--brick); }

.lang-switch { display: flex; align-items: center; gap: 2px; padding-left: 9px; border-left: 1px solid var(--line); }
.lang-btn { min-height: 36px; padding: 5px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { border-bottom-color: var(--brick); color: var(--brick); }
.lang-btn:disabled { opacity: .45; cursor: not-allowed; }

.menu-toggle { width: 44px; height: 44px; display: none; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 20px; height: 2px; display: block; background: currentColor; transition: transform .18s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.home-hero { position: relative; min-height: 510px; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.home-hero::after { content: ""; position: absolute; top: -90px; right: max(calc((100vw - var(--max)) / 2), 24px); width: 610px; height: 610px; background: url("branding/favicon-512x512.png") center / contain no-repeat; opacity: .14; pointer-events: none; }
.home-hero .wrap { position: relative; z-index: 1; padding-block: 66px; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 14px; color: var(--brick); font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.home-hero .eyebrow { color: #f0c66d; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: 0; }
h1 { margin: 0; color: var(--navy); font-size: 52px; }
.home-hero h1 { color: #fff; font-size: 56px; }
.lead { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }
.home-hero .lead { color: #e3ebef; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 4px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.primary:hover { background: #84342f; }
.btn.light { border-color: #fff; background: #fff; }
.btn.text { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--brick); }
.arrow { font-size: 18px; line-height: 1; }

.audience-bar { border-bottom: 1px solid var(--line); background: var(--warm); }
.audience-links { display: grid; grid-template-columns: repeat(4, 1fr); }
.audience-links a { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 18px 24px; border-right: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.audience-links a:first-child { border-left: 1px solid var(--line); }
.audience-links a:hover { background: #fff; }
.audience-links strong { font-size: 15px; }
.audience-links span { color: var(--muted); font-size: 13px; }

.page-hero { padding: 58px 0 52px; border-bottom: 1px solid var(--line); background: var(--warm); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--navy); }

section { padding: 70px 0; }
section.compact { padding: 48px 0; }
.band-soft { background: var(--soft); }
.band-warm { background: var(--warm); }
.band-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head.wide { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: 34px; }
.band-navy .section-head h2 { color: #fff; }
.section-head p { margin: 12px 0 0; color: var(--muted); }
.band-navy .section-head p { color: #d6e0e6; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.card h3 { margin: 8px 0 10px; color: var(--navy); font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.card .card-link { display: inline-flex; margin-top: 18px; color: var(--brick); font-weight: 800; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.label { color: var(--brick); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.feature-list, .plain-list, .check-list { margin: 0; padding: 0; list-style: none; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { color: var(--navy); }
.feature-list p { margin: 0; color: var(--muted); }
.plain-list li, .check-list li { margin-top: 9px; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: ""; position: absolute; top: .65em; left: 2px; width: 8px; height: 8px; background: var(--green); }

.number-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.number-list li { position: relative; min-height: 190px; padding: 58px 22px 22px; border: 1px solid var(--line); border-right: 0; background: #fff; counter-increment: steps; }
.number-list li:last-child { border-right: 1px solid var(--line); }
.number-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; top: 18px; left: 22px; color: var(--brick); font-size: 18px; font-weight: 900; }
.number-list strong { display: block; color: var(--navy); }
.number-list span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

.notice { padding: 18px 20px; border-left: 4px solid var(--gold); background: #fff8e8; color: #534724; }
.notice strong { color: var(--ink); }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 140px 1fr auto; align-items: start; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.news-item time, .news-item .news-type { color: var(--muted); font-size: 13px; }
.news-item h3 { margin: 0; color: var(--navy); font-size: 18px; }
.news-item p { margin: 7px 0 0; color: var(--muted); }
.news-item > a { color: var(--brick); font-size: 14px; font-weight: 800; text-decoration: none; }
.news-item > a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 15px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: var(--navy); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; color: var(--navy); cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 15px; right: 4px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 820px; margin: 0 0 20px; color: var(--muted); }

.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-strip h2 { margin: 0; font-size: 30px; }
.contact-strip p { margin: 8px 0 0; color: #d6e0e6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--muted); font-size: 13px; }

.office-list { border-top: 1px solid var(--line); }
.office-row { display: grid; grid-template-columns: 220px 1fr 230px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.office-row h3 { margin: 0; color: var(--navy); font-size: 18px; }
.office-row p { margin: 0; color: var(--muted); }
.office-row a { color: var(--brick); overflow-wrap: anywhere; }

.policy-copy { max-width: 820px; }
.policy-copy h2 { margin-top: 44px; color: var(--navy); font-size: 26px; }
.policy-copy h2:first-child { margin-top: 0; }
.policy-copy p { color: var(--muted); }

footer { padding: 52px 0 24px; background: var(--navy-deep); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.footer-identity { display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 14px; }
.footer-brand { width: 64px; height: 64px; object-fit: contain; }
.footer-grid h2 { margin: 0; font-size: 16px; }
.footer-grid h3 { margin: 0 0 13px; font-size: 14px; }
.footer-grid p { margin: 8px 0 0; color: #b9c7d0; font-size: 13px; }
.footer-grid a { display: block; margin: 7px 0; color: #d7e0e6; font-size: 13px; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 34px; padding-top: 19px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: space-between; gap: 24px; color: #aebdc7; font-size: 12px; }

@media (max-width: 1120px) {
  .brand-copy span { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .navlinks { position: fixed; top: 114px; right: 0; bottom: 0; left: 0; margin: 0; padding: 24px 20px 40px; display: none; align-items: stretch; flex-direction: column; gap: 0; overflow-y: auto; background: #fff; }
  .js .navlinks.open { display: flex; }
  .js .navlinks > a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .js .navlinks > a::after { display: none; }
  .js .lang-switch { margin-top: 20px; padding: 14px 0 0; border-left: 0; }
  .js .lang-btn { min-height: 44px; font-size: 14px; }
  html:not(.js) nav { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .navlinks { width: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  html:not(.js) .navlinks > a { padding: 6px 0; font-size: 14px; }
  html:not(.js) .navlinks > a::after { display: none; }
  html:not(.js) .lang-switch { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .number-list { grid-template-columns: 1fr; }
  .number-list li { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .number-list li:last-child { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .topbar .wrap { min-height: 34px; }
  header { top: 34px; }
  .topbar .official-label { display: none; }
  .utility-links { margin-left: auto; }
  .utility-links a:first-child { display: none; }
  nav { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .navlinks { top: 102px; }
  .home-hero { min-height: 470px; }
  .home-hero::after { width: 420px; height: 420px; top: 25px; right: -170px; }
  .home-hero .wrap { padding-block: 50px; }
  h1, .home-hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .audience-links { grid-template-columns: repeat(2, 1fr); }
  .audience-links a:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .audience-links a:nth-child(4) { border-top: 1px solid var(--line); }
  section { padding: 54px 0; }
  .page-hero { padding: 42px 0 38px; }
  .section-head.wide, .contact-strip { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: 29px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .feature-list li { grid-template-columns: 1fr; gap: 8px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .office-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

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

@media print {
  .topbar, header, .audience-bar, .actions, .contact-strip .btn, footer { display: none !important; }
  body { color: #000; }
  .page-hero, section { padding: 24px 0; background: #fff !important; }
  a { text-decoration: underline; }
}
