/* ============ 基础 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e6fff;
  --primary-dark: #1450c8;
  --text: #333;
  --text-light: #777;
  --bg-gray: #f5f7fa;
  --border: #e5e8ef;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============ 导航 ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

/* ============ 首屏横幅 ============ */
.hero {
  background: linear-gradient(135deg, #1e6fff 0%, #1450c8 60%, #0c3a91 100%);
  color: #fff;
  text-align: center;
  padding: 96px 20px;
}

.hero h1 {
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  background: #eaf1ff;
}

/* ============ 内页横幅 ============ */
.page-banner {
  background: linear-gradient(135deg, #1e6fff 0%, #1450c8 100%);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}

.page-banner h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-banner p { opacity: 0.85; }

/* ============ 通用区块 ============ */
.section { padding: 64px 0; }
.section-gray { background: var(--bg-gray); }

.section-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 32px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-desc {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
}

/* ============ 卡片 / 栅格 ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(30, 111, 255, 0.1);
  transform: translateY(-4px);
}

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14px; }

/* ============ 页脚 ============ */
.site-footer {
  background: #1f2733;
  color: #9aa4b2;
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  margin-top: auto;
}

.site-footer p + p { margin-top: 6px; }

.site-footer a { color: #9aa4b2; }
.site-footer a:hover { color: #fff; }

/* 页脚备案链接行（ICP + 公安备案并排，可换行） */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.police-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .hero { padding: 64px 20px; }
  .hero h1 { font-size: 26px; letter-spacing: 2px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 20px;
    border-bottom: none;
  }

  .site-nav a.active {
    border-bottom: none;
    background: #eaf1ff;
  }
}
