:root {
  --ink: #1b2430;
  --muted: #5c6b7a;
  --line: #dde3ea;
  --brand: #0b5fa5;
  --brand-dark: #08457a;
  --soft: #f3f6fa;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: #fff;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.draft-bar {
  background: #fff4cc;
  color: #7a5b00;
  font-size: 14px;
  text-align: center;
  padding: 6px 12px;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand img { height: 72px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  border-radius: 6px;
  font-weight: 500;
}
nav a:hover { background: var(--soft); text-decoration: none; }
nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }

.appgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .appgrid { grid-template-columns: 1fr; } }
.appcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.appcard:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(11,95,165,.16); transform: translateY(-2px); }
.appcard img { width: 100%; display: block; aspect-ratio: 800 / 420; object-fit: cover; }
.appbody { padding: 18px 20px 22px; }
.appbody h3 { margin: 0 0 6px; font-size: 20px; }
.appbody p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.appbody span { color: var(--brand); font-weight: 600; }
.apphero img { width: 100%; max-width: 920px; display: block; border-radius: 14px; }
.crumb { margin: 0 0 6px; font-size: 14px; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 15px; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 220px)); gap: 18px; margin-top: 18px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.case img { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.case span { font-weight: 600; }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.lang a:hover { text-decoration: none; background: var(--soft); }
.lang a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.hero {
  background: linear-gradient(135deg, #0a3d6b 0%, #0b5fa5 60%, #2d86c9 100%);
  color: #fff;
  padding: 84px 0 90px;
}
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; margin: 0 0 16px; letter-spacing: .02em; }
.hero p { max-width: 640px; font-size: 18px; margin: 0 0 28px; color: #e6f0fa; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 600;
}
.btn:hover { text-decoration: none; background: #eaf3fb; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

section { padding: 64px 0; }
section.alt { background: var(--soft); }
h2 { font-size: 26px; margin: 0 0 8px; }
h2 + .lead { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.page-head { background: var(--soft); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; font-size: 32px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 760px; }
.prose p { margin: 0 0 16px; }
table.facts { border-collapse: collapse; width: 100%; max-width: 760px; }
table.facts th, table.facts td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
table.facts th { width: 130px; color: var(--muted); font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline li { padding: 16px 0 16px 22px; border-left: 3px solid var(--brand); margin-left: 6px; }
.timeline time { display: block; color: var(--muted); font-size: 14px; }
.placeholder {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

footer.site { background: #0f1b2a; color: #b9c6d4; padding: 36px 0; font-size: 14px; }
footer.site a { color: #dbe8f5; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer.site strong { color: #fff; }

@media (max-width: 640px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .hero { padding: 56px 0 60px; }
  .btn.ghost { margin: 10px 0 0; }
}

/* hero: application thumbnails */
.herovis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.herovis a { display: block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; overflow: hidden; color: #fff; }
.herovis a:hover { text-decoration: none; background: rgba(255,255,255,.2); }
.herovis img { width: 100%; display: block; aspect-ratio: 800 / 420; object-fit: cover; }
.herovis span { display: block; padding: 8px 12px; font-weight: 600; font-size: 15px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(11,95,165,.15); }
@media (max-width: 760px) { .herovis { grid-template-columns: repeat(2, 1fr); } }

.imgnote { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.imgnote.light { color: rgba(255,255,255,.75); }
