:root {
  --primary: #2563eb;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 导航 */
header {
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  /*max-width: 900px;*/
  /*margin: 0 auto;*/
  padding: 0.75rem 1rem;   /*文字外边距*/
  font-size: 1.5rem;          /*字体大小*/
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;         /* 垂直居中 */
  justify-content: flex-start; /* 确保内容靠左（替换掉无效的 left-end）*/
  gap: 2rem;                   /* 图标和文字之间的间距（可自定义大小）*/
}

nav h svg {
    flex-shrink: 0;             /* 防止图标被挤压变形 */
}

nav a {
    color: var(--primary);       /* 主题色 */
    text-decoration: none;       /* 去掉下划线 */
    transition: opacity 0.2s;    /* 悬停过渡 */
}

nav a:hover {
    opacity: 0.7;                /* 悬停变淡 */
}

/* 主区域 */
main {
  flex: 1;
  max-width: 750px; /* 控制页面最大宽度，防止在大屏幕上太宽 */
  margin: 20px auto; /* 上下间距20px，左右自动居中 */
  padding: 0 20px;   /* 手机端留点边距 */
  width: 100%;                         /* 统一间距，替代原来的 margin-bottom */
}

.Central-map      { grid-area: central; }

.Central-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* ⭐ 三等分三列 */
    gap: 10px;                                /* 格子间距 */
}

.Central-map-1 {
  aspect-ratio: 1 / 1;       /* 正方形 */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
}

.Central-map-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: none !important;
  border: none !important;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* 页脚通用链接样式 */
footer a {
    color: var(--primary);      /* 主色 */
    text-decoration: none;      /* 去掉下划线 */
    transition: opacity 0.2s;   /* 悬停过渡 */
}

footer a:hover {
    opacity: 0.7;               /* 悬停变淡 */
}

/* 1. ICP 备案：强制独占一行，并与下方保持间距 */
.icp-link {
    display: block;             /* 【关键】强制换行，独占一行 */
    margin-bottom: atuo;        /* 【关键】与下方公安备案拉开距离 */
}

/* 2. 公安备案容器：使用 Flexbox 实现图标文字垂直居中 */
.gongan-beian-link {
    display: inline-flex;       /* 【关键】启用弹性布局 */
    align-items: center;        /* 【关键】子元素垂直居中对齐 */
    justify-content: center;    /* 水平居中 (配合 footer 的 text-align: center) */
}

/* 3. 公安备案图标：修正间距 */
.gongan-icon {
    width: 18px;
    height: 18px;
    margin-right: auto;          /* 【修正】固定间距，不要用 auto */
    vertical-align: middle;     /* 备用方案 */
}

/* 4. 公安备案文字：消除行高偏差 */
.gongan-text {
    line-height: 1;             /* 【关键】让文字基线更紧凑，对齐更精准 */
}
