:root {
  --ink: #17212b;
  --muted: #5b6773;
  --line: #d8dee5;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --secondary: #365c7d;
  --gold: #b9852c;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--secondary);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 280px;
}

.brand img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.brand-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}

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

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #17212b;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 28, 39, 0.88), rgba(13, 28, 39, 0.52), rgba(13, 28, 39, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #b9f2e8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

.hero h1 {
  max-width: 800px;
  font-size: 58px;
}

.hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #edf5f7;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.button.secondary:hover {
  background: #e7eef3;
  color: var(--ink);
}

.section {
  padding: 72px 0;
}

.section.white {
  background: var(--surface);
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  margin: 12px 0 0;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23, 33, 43, 0.06);
}

.card-body {
  padding: 22px;
}

.card h3 {
  font-size: 21px;
}

.card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 46px;
}

.page-hero h1 {
  font-size: 42px;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  margin: 14px 0 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.profile-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.timeline-item strong {
  display: block;
}

.paper-list {
  margin: 0;
  padding-left: 24px;
}

.paper-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}

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

.link-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.link-item strong {
  display: block;
  color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-panel dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-panel dd {
  margin: 4px 0 0;
}

.note {
  border-left: 4px solid var(--gold);
  background: #fff8ec;
  padding: 14px 18px;
  color: #68460d;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.site-footer {
  background: #17212b;
  color: #d9e2ea;
  padding: 30px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .grid,
  .grid.two,
  .profile-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .page-hero-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .brand-title {
    font-size: 15px;
  }

  .nav a {
    padding: 7px 8px;
  }
}
