*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-border: #e2e8f0;
  --max-width: 960px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 左上角网站名称 — 管局核查重点 */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
}

.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
}

.content h1,
.content h2 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.content p {
  margin-bottom: 0.875rem;
  color: var(--color-text-muted);
}

.content p:last-child {
  margin-bottom: 0;
}

.content strong {
  color: var(--color-text);
}

.content-note {
  margin-top: 1.5rem;
}

.records h2 {
  margin-bottom: 1.25rem;
}

.record-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.record-item:first-of-type {
  padding-top: 0;
}

.record-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.record-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.record-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.record-item p {
  margin-bottom: 0;
}

/* 底部备案号 — 必须可链接至 beian.miit.gov.cn */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer p {
  margin-bottom: 0.375rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.beian a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.beian a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    height: auto;
    padding: 0.875rem 1rem;
    gap: 0.625rem;
  }

  .site-name {
    font-size: 1rem;
  }

  .hero {
    padding: 1.75rem 1.25rem;
  }

  .content {
    padding: 1.5rem 1.25rem;
  }
}
