/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #2b2d42;
  --muted: #6c6f87;
  --primary: #4f6df5;
  --border: #e4e6ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(960px, 92%);
  margin: 0 auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #4f6df5 0%, #7c5cf0 100%);
  color: #fff;
  text-align: center;
  padding: 96px 0;
}

.hero-inner h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-inner p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ===== 通用区块 ===== */
.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  position: relative;
  padding-left: 14px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

.section p {
  color: var(--muted);
}

.post-list {
  list-style: none;
  margin-top: 12px;
}

.post-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.post-list a {
  color: var(--text);
}

.post-list a:hover {
  color: var(--primary);
}

/* ===== 页脚（含备案信息） ===== */
.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.beian-gov {
  display: inline-flex;
  align-items: center;
}

/* 备案号文字与链接颜色保持低调清晰，符合规范 */
.beian a {
  color: var(--muted);
  text-decoration: none;
}

.beian a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .hero {
    padding: 64px 0;
  }

  .hero-inner h1 {
    font-size: 1.6rem;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }
}
