:root {
  --navy: #134a6f;
  --blue: #1f638b;
  --teal: #0f766e;
  --gold: #a86d18;
  --ink: #22303a;
  --muted: #667684;
  --line: #c8d5df;
  --wash: #e9f3f9;
  --mist: #f6f8fa;
  --paper: #ffffff;
  --shadow: 0 16px 40px rgba(31, 63, 87, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.top-bar {
  height: 24px;
  background: var(--navy);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(19, 74, 111, 0.07), rgba(15, 118, 110, 0.05) 48%, rgba(168, 109, 24, 0.08));
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 52px 0 34px;
}

.page-hero {
  padding: 42px 0 32px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.22;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.24rem;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 700;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.meta-item {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper);
}

.meta-label {
  display: block;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.meta-value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: var(--paper);
  color: var(--navy);
}

.nav-band {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
}

.page-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.page-nav a:hover,
.page-nav a:focus,
.page-nav a.active {
  border-color: var(--teal);
  outline: none;
}

.section {
  padding: 50px 0;
}

.section.alt {
  background: var(--mist);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.home-grid,
.overview-grid,
.content-columns,
.gallery {
  display: grid;
  gap: 22px;
}

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

.overview-grid,
.gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.link-card,
.info-block,
.content-card {
  background: var(--paper);
  box-shadow: var(--shadow);
}

.link-card {
  display: block;
  min-height: 162px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none;
}

.link-card:nth-child(2n) {
  border-top-color: var(--gold);
}

.link-card p,
.info-block p,
.content-card p,
.info-block li {
  color: #34414a;
  font-size: 1rem;
}

.link-card p,
.info-block p,
.content-card p {
  margin: 10px 0 0;
}

.info-block {
  border-top: 4px solid var(--teal);
  padding: 24px;
}

.info-block h2,
.content-card h2 {
  margin-bottom: 12px;
  font-size: 1.24rem;
}

.info-block.gold {
  border-top-color: var(--gold);
}

.content-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agenda-grid {
  display: grid;
  gap: 26px;
}

.agenda {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.agenda-title {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfe;
}

.agenda-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  padding: 14px 16px;
  background: var(--blue);
  color: #ffffff;
  font-size: 1.03rem;
  font-weight: 900;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

th:last-child {
  border-right: 0;
}

td {
  padding: 22px 18px;
  color: #26323b;
  font-size: 1.02rem;
  text-align: center;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

tbody tr:nth-child(even) td {
  background: var(--wash);
}

.time {
  width: 18%;
  font-weight: 900;
  white-space: nowrap;
}

.topic {
  width: 32%;
  font-weight: 900;
}

.person {
  width: 22%;
  font-weight: 800;
}

.remark {
  width: 28%;
}

.facts-table th,
.pending-table th,
.quick-table th {
  background: var(--navy);
}

.facts-table td,
.pending-table td,
.quick-table td {
  text-align: left;
  background: var(--paper);
}

.facts-table td:first-child,
.pending-table td:first-child {
  width: 22%;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.clean-list {
  margin: 0;
  padding-left: 1.2rem;
}

.clean-list li + li {
  margin-top: 8px;
}

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 30px 0 42px;
  color: #7f8b94;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .section-head,
  .home-grid,
  .overview-grid,
  .content-columns,
  .gallery {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }

  .actions {
    justify-content: flex-start;
  }

  .meta-strip {
    grid-template-columns: 1fr;
  }

  .agenda-title {
    display: block;
  }

  .agenda-title p {
    margin-top: 8px;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 38px 0;
  }

  .page-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .page-nav a {
    padding-left: 11px;
    padding-right: 11px;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tr {
    border-top: 1px solid var(--line);
  }

  tr:first-child {
    border-top: 0;
  }

  td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 12px 16px;
    text-align: left;
    border-top: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--navy);
    font-weight: 900;
  }

  tbody tr:nth-child(even) td,
  tbody tr:nth-child(odd) td {
    background: transparent;
  }

  tbody tr:nth-child(even) {
    background: var(--wash);
  }

  .time,
  .topic,
  .person,
  .remark {
    width: 100%;
  }

  .time {
    white-space: normal;
  }

  .facts-table td:first-child,
  .pending-table td:first-child {
    width: 100%;
    text-align: left;
  }
}

@media print {
  .top-bar,
  .nav-band,
  .actions {
    display: none;
  }

  .site-header,
  .section,
  .section.alt,
  .footer {
    background: #ffffff;
  }

  .section {
    padding: 26px 0;
  }

  .agenda,
  .info-block,
  .link-card,
  .content-card,
  figure,
  .meta-strip {
    box-shadow: none;
  }
}
