:root {
  color-scheme: light;
  --ink: #17332f;
  --ink-soft: #50615e;
  --brand: #0f766e;
  --brand-deep: #12473f;
  --brand-pale: #eaf7f4;
  --accent: #d65f55;
  --accent-pale: #fff0ed;
  --surface: #ffffff;
  --canvas: #f7faf8;
  --line: #dbe6e2;
  --warning: #76530a;
  --warning-bg: #fff8df;
  --shadow: 0 18px 50px rgb(18 71 63 / 9%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgb(15 118 110 / 9%), transparent 26rem),
    var(--canvas);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ef8b80;
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  color: #fff;
  background: var(--brand-deep);
  border-radius: 999px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgb(219 230 226 / 85%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.75rem;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.8rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--brand-pale);
  color: var(--brand-deep);
}

.page-shell {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 5vw, 3.75rem);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero p {
  margin: 0;
  max-width: 49rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h2 {
  margin-block: 0 0.8rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
}

h3 {
  margin-block: 0 0.45rem;
  line-height: 1.4;
}

p,
ul,
ol {
  margin-block: 0.55rem 0;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta {
  color: rgb(255 255 255 / 78%);
  font-size: 0.94rem;
}

.content-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.content-card,
.topic-card,
.notice {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 8px 30px rgb(18 71 63 / 5%);
}

.content-card {
  grid-column: span 12;
}

.topic-card {
  grid-column: span 6;
}

.topic-card p,
.content-card p,
.content-card li {
  color: var(--ink-soft);
}

.notice {
  margin-top: 1.5rem;
  border-color: #f0d786;
  background: var(--warning-bg);
  color: var(--warning);
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  width: fit-content;
  padding: 0.15rem 0.7rem;
  color: var(--brand-deep);
  background: var(--brand-pale);
  border: 1px solid #b7ddd5;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  min-height: 3rem;
  padding: 0.35rem 0 1.2rem 3.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 800;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--brand-deep);
  background: var(--brand-pale);
  border-radius: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  margin-top: 2rem;
  color: #d9e8e4;
  background: var(--brand-deep);
}

.footer-inner {
  display: grid;
  gap: 0.7rem;
  padding-block: 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
}

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

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero {
    border-radius: 1.35rem;
  }

  .topic-card {
    grid-column: span 12;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
