:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #627084;
  --line: #d9e0e8;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --teal: #237b75;
  --blue: #1e3f66;
  --ochre: #b77a2f;
  --soft: #eef5f3;
  --shadow: 0 14px 34px rgba(24, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 68px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(217, 224, 232, 0.85);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover,
.link-card:hover h3,
.site-footer a:hover {
  color: var(--teal);
}

.home-hero,
.article-hero,
.section,
.article-section {
  width: min(1120px, 88vw);
  margin: 0 auto;
}

.home-hero {
  padding: 116px 0 70px;
}

.article-hero {
  padding: 88px 0 44px;
}

.section,
.article-section {
  padding: 78px 0 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10em;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
}

.home-copy,
.article-hero p,
.section-heading p:not(.eyebrow),
.link-card p,
.note-card p,
.detail-list p,
.check-grid p,
.steps p,
.about p {
  color: var(--muted);
}

.home-copy,
.article-hero p {
  max-width: 760px;
  font-size: 18px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-link {
  color: #fff;
  background: var(--teal);
}

.secondary-link {
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.link-card,
.note-card,
.detail-list section,
.check-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-card {
  min-height: 190px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.link-card span,
.note-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ochre);
  font-size: 13px;
  font-weight: 700;
}

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

.process-flow div {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--soft));
}

.process-flow div::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -15px;
  width: 15px;
  height: 2px;
  background: var(--teal);
}

.process-flow div:last-child::after {
  display: none;
}

.process-flow span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.process-flow strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.process-flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-card,
.detail-list section,
.check-grid section {
  padding: 24px;
}

.detail-list {
  display: grid;
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 72px;
  align-items: start;
}

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

.steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps span {
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.about,
.article-page {
  padding-bottom: 96px;
}

.about p {
  max-width: 860px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #f5f2eb;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero {
    padding-top: 84px;
  }

  .link-grid,
  .article-grid,
  .check-grid,
  .process-flow,
  .split {
    grid-template-columns: 1fr;
  }

  .process-flow div::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 40px;
    width: 2px;
    height: 15px;
  }

  .split {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand {
    font-size: 15px;
  }

  .home-hero,
  .article-hero,
  .section,
  .article-section {
    width: calc(100vw - 40px);
  }

  .home-hero {
    padding-top: 66px;
    padding-bottom: 42px;
  }

  .article-hero {
    padding-top: 54px;
  }

  .section,
  .article-section {
    padding-top: 62px;
  }

  h1 {
    font-size: 42px;
  }

  .home-copy,
  .article-hero p {
    font-size: 16px;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
    justify-content: center;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
