@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap');

:root {
  --color-text: #0d1a2e;
  --color-text-muted: #4a6080;
  --color-text-dim: #8aa0bc;
  --color-blue: #1a6fd4;
  --color-blue-dim: #1255a8;
  --color-bg-surface: #f4f7fc;
  --color-border: rgba(26, 111, 212, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.5;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.nav-lang:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  color: var(--color-blue);
  font-size: 11px;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--color-blue);
  letter-spacing: 0.6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-blue);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  font-size: 14px;
  padding: 14px 0;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-blue);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  padding: 7px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- Nav ---------- */
.nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 16px;
  color: var(--color-text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
}

/* ---------- Page header banner ---------- */
.page-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 302px;
  padding: 27px 40px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  color: #fff;
}

.page-header img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  z-index: 0;
}

.page-header .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header .content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.72px;
  margin: 0 0 16px;
  opacity: 0.85;
}

.breadcrumb .current {
  font-weight: 500;
  opacity: 1;
}

.page-header h1 {
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -1px;
  margin: 0 0 16px;
}

.page-header p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  opacity: 0.9;
}

.page-header .content > p:last-child {
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.65px;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.footer-brand img {
  height: 24px;
  width: auto;
  opacity: 0.8;
}

.footer-info p {
  margin: 0 0 5px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-info .label {
  color: var(--color-text-dim);
  margin-right: 6px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer-bottom {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.66px;
  color: var(--color-text-dim);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-inner {
    padding: 0 20px;
  }
  .nav-links {
    gap: 18px;
    font-size: 14px;
  }
  .brand-name {
    display: none;
  }
  .page-header h1 {
    font-size: 36px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
