:root {
  --navy: #071a33;
  --ink: #122033;
  --muted: #5d6d80;
  --line: #d7e0ea;
  --paper: #f4f7fb;
  --cyan: #14c8d6;
  --cyan-deep: #0aa3b0;
  --font: "Segoe UI", "PingFang TC", "Noto Sans TC", "Hiragino Sans", "Yu Gothic", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--cyan-deep); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cyan);
  color: var(--navy);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-height: 44px;
}
.brand strong { color: var(--cyan-deep); font-size: 1.25rem; letter-spacing: -0.03em; }
.brand span { color: var(--muted); font-size: 0.92rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a, .langs button, .menu, .btn, .regions button, .card {
  font: inherit;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}
.nav a[aria-current="page"], .langs button[aria-pressed="true"], .regions button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.langs { display: flex; gap: 4px; }
.langs button, .menu, .regions button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--navy);
}
.menu { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.btn.navy { background: var(--navy); color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  background: var(--navy);
  color: #fff;
  padding: clamp(36px, 7vw, 80px) 0;
}
.hero .eyebrow { color: var(--cyan); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; margin: 0 0 8px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 16ch; }
.hero p { margin: 0 0 20px; max-width: 62ch; color: rgba(255,255,255,0.82); }
.section { padding: 36px 0; }
h2 { margin: 0 0 8px; color: var(--navy); letter-spacing: -0.03em; font-size: 1.5rem; }
.lede { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}
.card:hover { border-color: var(--cyan-deep); }
.card b { display: block; color: var(--navy); margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 0.92rem; }
.anchor { scroll-margin-top: 84px; padding-top: 8px; }
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 22px 0;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-footer a { color: var(--cyan); }
.stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr); gap: 14px; align-items: start; }
.map-frame { height: min(68vh, 620px); min-height: 420px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #d7e6ef; }
#map { height: 100%; width: 100%; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.office { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; min-height: 44px; }
.office[aria-pressed="true"] { border-color: var(--cyan-deep); background: #e7f8fa; }
.office b { display: block; color: var(--navy); }
.office span { display: block; color: var(--muted); font-size: 0.82rem; }
form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 0.92rem; color: var(--navy); font-weight: 700; }
input, select, textarea {
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 400;
}
textarea { min-height: 96px; resize: vertical; }
.note { color: var(--muted); font-size: 0.88rem; }
.ok { background: #e7f7f2; color: #0e6b56; border-radius: 12px; padding: 12px; }
.err { color: #9b2c2c; margin: 0; }
.pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 2px solid #fff;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700;
}
.pin.on { background: var(--cyan-deep); }
@media (max-width: 900px) {
  .grid, .grid.two, .stage { grid-template-columns: 1fr; }
  .map-frame { height: 420px; min-height: 420px; }
}
@media (max-width: 760px) {
  .menu { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
