:root {
  --ink: #17202a;
  --muted: #5b6673;
  --line: #d9e0e7;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --teal: #166b6f;
  --teal-dark: #0f4c50;
  --red: #b73535;
  --gold: #c7902e;
  --blue: #2d5f9a;
  --green: #4f7b4f;
  --shadow: 0 18px 42px rgba(20, 40, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 224, 231, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 72px;
  background: #fff;
  border: 1px solid rgba(22, 107, 111, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 40, 60, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 10px;
  color: #243241;
  font-size: 15px;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--teal-dark);
  background: #e9f3f3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #12292c;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 32, 36, 0.86), rgba(9, 32, 36, 0.42) 46%, rgba(9, 32, 36, 0.08)),
    linear-gradient(0deg, rgba(9, 32, 36, 0.55), rgba(9, 32, 36, 0));
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 84px clamp(22px, 6vw, 72px) 120px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd27f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.35;
}

.hero p {
  max-width: 610px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--red);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.quick-links {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: -68px auto 0;
  padding: 0 clamp(18px, 4vw, 28px);
  gap: 14px;
}

.quick-links a {
  min-height: 136px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-links span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.quick-links strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.section {
  padding: 86px clamp(20px, 5vw, 68px);
}

.muted {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.section-intro,
.section-heading {
  max-width: 720px;
}

.section-intro p,
.section-heading p {
  color: var(--muted);
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin-bottom: 24px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.news-list time {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.news-list p,
.feature-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 186px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: 8px;
}

.accent-a { border-top-color: var(--teal); }
.accent-b { border-top-color: var(--red); }
.accent-c { border-top-color: var(--gold); }
.accent-d { border-top-color: var(--blue); }
.accent-e { border-top-color: var(--green); }
.accent-f { border-top-color: #6b5a9e; }

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.columns > div {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.link-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a,
.download-grid a,
.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.link-list a:hover,
.download-grid a:hover,
.text-link:hover {
  color: var(--red);
}

.event-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(96px, 0.4fr);
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.event-row:first-child {
  border-top: 0;
}

.event-row.head {
  min-height: 52px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.event-row em {
  justify-self: start;
  min-width: 78px;
  padding: 4px 9px;
  color: var(--red);
  background: #fff1ef;
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-cloud a {
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats div {
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 40, 60, 0.08);
}

.stats strong {
  display: block;
  color: var(--red);
  font-size: 42px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.download-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.download-grid a,
.sitemap-grid div {
  min-height: 86px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sitemap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sitemap-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 68px);
  color: #fff;
  background: #14272a;
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  font-weight: 800;
  color: #ffd27f;
}

@media (max-width: 1040px) {
  .feature-grid,
  .feature-grid.three,
  .download-grid,
  .sitemap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    background: var(--soft);
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 76px;
    padding-bottom: 104px;
  }

  .quick-links {
    margin-top: -56px;
  }

  .split,
  .columns {
    grid-template-columns: 1fr;
  }

  .event-row,
  .event-row.head {
    grid-template-columns: 1fr;
  }

  .event-row.head {
    display: none;
  }

  .event-row {
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 16px;
  }

  .quick-links,
  .feature-grid,
  .feature-grid.three,
  .stats,
  .download-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
