:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f4f7fb;
  color: #18212f;
  line-height: 1.7;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.page-wide {
  max-width: 1120px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce4ee;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.page-header a {
  color: #2d5bff;
  text-decoration: none;
}

.page-header a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.meta {
  color: #5b6a82;
  font-size: 0.9rem;
  margin: 0 0 28px;
}

h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  color: #18212f;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

p,
li {
  color: #2c3a52;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #eef2f8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  background: #18212f;
  color: #e7ecf3;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.article-figure {
  margin: 28px 0 32px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.article-figure figcaption {
  margin-top: 10px;
  color: #5b6a82;
  font-size: 0.9rem;
  line-height: 1.55;
}

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

th {
  background: #eef2f8;
}

.lang-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.lang-switcher a {
  padding: 6px 14px;
  border-radius: 999px;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.lang-switcher a:hover {
  color: #2d5bff;
}

.lang-switcher a.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: default;
}

.cta {
  display: inline-block;
  background: #18212f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 4px 0 12px;
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: #2d5bff;
}

.cta-secondary {
  margin-left: 8px;
  background: #fff;
  color: #18212f;
  border: 1px solid #dce4ee;
}

.cta-secondary:hover {
  background: #eef2f8;
  color: #0f172a;
}

.page-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #dce4ee;
  color: #5b6a82;
  font-size: 0.9rem;
}

.page-footer a {
  color: #2d5bff;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 34px;
}

.compact-state-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.state-card {
  display: block;
  min-height: 100%;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.state-card:hover {
  border-color: #1f7a63;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.state-card h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.state-card .state-meta {
  margin: 0 0 10px;
  color: #5b6a82;
  font-size: 0.84rem;
  line-height: 1.5;
}

.state-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.notice {
  margin-top: 38px;
  padding: 18px 20px;
  border: 1px solid #b8d7ca;
  border-radius: 8px;
  background: #eef8f3;
}

.notice h2 {
  margin-top: 0;
}

.notice p {
  margin-bottom: 0;
}
