:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18202a;
  background: #f6f8fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fb;
}

a {
  color: #2359b8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  color: #18202a;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 15px;
}

nav a {
  color: #4a5565;
}

nav a[aria-current="page"] {
  color: #2359b8;
  font-weight: 700;
}

main {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
}

.home-page {
  padding: 54px 0 72px;
}

.policy-page {
  padding: 42px 0 72px;
}

h1 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.policy-page h1 {
  font-size: 34px;
}

h2 {
  margin: 38px 0 14px;
  color: #172033;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin: 28px 0 10px;
  color: #243044;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
}

p,
li,
td,
th {
  font-size: 17px;
  line-height: 1.8;
}

p {
  margin: 12px 0;
}

ul,
ol {
  margin: 10px 0 18px;
  padding-left: 24px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eaf0f8;
  color: #0f3d77;
  font-size: 0.9em;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebf2;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3fa;
  color: #172033;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

footer {
  padding: 28px 24px 40px;
  border-top: 1px solid #e2e8f0;
  color: #5a6475;
  text-align: center;
  background: white;
}

footer p {
  margin: 4px 0;
  font-size: 14px;
}

.record-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.gongan-record {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.gongan-icon {
  height: 16px;
  width: 16px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    justify-content: flex-start;
  }

  main {
    width: min(100vw - 32px, 1120px);
  }

  .home-page,
  .policy-page {
    padding-top: 30px;
  }

  h1 {
    font-size: 34px;
  }

  .policy-page h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 22px;
  }

  p,
  li,
  td,
  th {
    font-size: 16px;
  }
}
