:root {
  color-scheme: light;
  --page: #f4f6fa;
  --panel: #fff;
  --text: #152744;
  --muted: #4d607b;
  --line: #d7e0ec;
  --accent: #2855b9;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

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

a:focus-visible {
  outline: 3px solid #547cde;
  outline-offset: 4px;
}

.shell {
  width: min(100% - 2rem, 63rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-block: .8rem;
}

.brand {
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 850;
  letter-spacing: -.06em;
  text-decoration: none;
}

.brand span { color: var(--accent); }

nav, .site-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
}

nav a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

nav a:hover { text-decoration: underline; }

.hero {
  padding: clamp(2.25rem, 7vw, 5rem);
  border-radius: 1.5rem;
  background: linear-gradient(132deg, #122744 0%, #162e55 70%, #1d4182 100%);
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero h1 span { color: #bcd2ff; }

.hero p {
  max-width: 28rem;
  margin: 1.25rem 0 1.65rem;
  color: #e2eafe;
}

.hero-link {
  display: inline-block;
  padding: .58rem 1.13rem;
  border-radius: .55rem;
  background: #edf3ff;
  color: #173e93;
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover { background: #dbe8ff; }

.section { margin-top: 2.65rem; }

.section h2 {
  margin: 0 0 .85rem;
  font-size: 1.5rem;
}

.resource-list {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  list-style: none;
}

.resource-list li + li { border-top: 1px solid var(--line); }

.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: .75rem;
  color: var(--text);
  text-decoration: none;
}

.resource-list a:hover { background: #eef4ff; }
.resource-list a:hover h3 { color: var(--accent); }

.resource-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.resource-list p {
  margin: .15rem 0 0;
  color: var(--muted);
}

.source {
  flex-shrink: 0;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  margin-top: 2.65rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
}

.site-footer a { text-underline-offset: .2em; }

@media (max-width: 32rem) {
  .resource-list a { align-items: flex-start; flex-direction: column; }
}
