: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: 1.5rem;                   /* 图标和文字之间的间距（可自定义大小）*/
}

nav h svg {
    flex-shrink: 0;             /* 防止图标被挤压变形 */
}

nav a {
    color: var(--primary);       /* 主题色 */
    text-decoration: none;       /* 去掉下划线 */
    transition: opacity 0.2s;    /* 悬停过渡 */
}

nav .a-1 {
    transform: translateY(12px);
    color: var(--primary);       /* 主题色 */
    text-decoration: none;       /* 去掉下划线 */
    transition: opacity 0.2s;    /* 悬停过渡 */
}

nav a:hover {
    opacity: 0.7;                /* 悬停变淡 */
}

/* 主区域 */
main {
  flex: 1;
  max-width: 1000px; /* 控制页面最大宽度，防止在大屏幕上太宽 */
  margin: 20px auto; /* 上下间距20px，左右自动居中 */
  padding: 0 20px;   /* 手机端留点边距 */
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 240px;     /* 左自适应，右长条 240px */
  grid-template-areas:
    "banner  right"
    "central right";                    /* right 出现两次 → 自动跨两行等高 */
  gap: 20px;                            /* 统一间距，替代原来的 margin-bottom */
}

.Top-banner-image { grid-area: banner; }
.Central-map      { grid-area: central; }
.Right-map        { grid-area: right; }

.Top-banner-image {
    width: 100%;
    height: 498px; /* 大框的高度 */
    border-radius: 12px; /* 圆角 */
    overflow: hidden; /* 极其重要：把图片超出圆角的部分切掉 */
    text-decoration: none; /* 去掉链接默认的蓝色下划线 */
    display:block; /* 变成块级元素，填满宽高 */
    cursor: pointer; /* 鼠标变小手 */
    /*background-color: #f0f0f0;*/ /* 临时背景色 */
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/ /* 淡淡的阴影 */
}

.Top-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形且铺满 */
    display: block;    /* 消除图片底部默认的几像素空隙 */
    /* 确保图片本身没有任何阴影或边框 */
    box-shadow: none !important; 
    border: none !important;
}

.Central-map {
    display: flex;          /* 开启弹性布局，让子元素横向排列 */
    gap: 20px;              /* 三个框之间的间距 */
}

.Central-map-1 {
    flex: 1;                /* 重点：三个框平均分配宽度 (各占1/3) */
    height: 160px;          /* 小框高度 */
    border-radius: 12px;    /* 圆角 */
    padding: atuo;          /* 内边距 */
    cursor: pointer;        /* 鼠标变小手 */
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0; /* 临时背景色 */
    justify-content: center; /* 文字垂直居中 */
}

.Central-map img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形且铺满 */
    display: block;    /* 消除图片底部默认的几像素空隙 */
    /* 确保图片本身没有任何阴影或边框 */
    box-shadow: none !important;
    border: none !important;
}

.Right-map {
  /* grid 默认 align-items: stretch，会自动拉到和大图+缩略图一样高 */
  min-height: 0;          /* 防止内容溢出 */
}

.Right-map-1 {
    flex: 1;                   /* 重点：三个框平均分配宽度 (各占1/3) */
    height: 100%;              /* 小框高度 */
    border-radius: 12px;       /* 圆角 */
    padding: atuo;             /* 内边距 */
    /*cursor: pointer;*/           /* 鼠标变小手 */
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0; /* 临时背景色 */
    justify-content: top;   /* 文字垂直居中 */
}

.Right-map img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片不变形且铺满 */
    display: block;    /* 消除图片底部默认的几像素空隙 */
    order: 2; /* 将图片的排序权重设为2，文字默认为0，图片就会跑到下面 */
    /* 确保图片本身没有任何阴影或边框 */
    box-shadow: none !important;
    border: none !important;
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-header h3 {
    margin: 0;
    font-size: 30px;
}

.login-header p {
    margin: 2px 0 0;
    font-size: 14px;
}

/* 输入框组 */
.input-group {
    /*margin-bottom: 0px;*/
    padding: 0.25rem 0.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box; /* 关键：防止padding撑大宽度 */
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: #4a90e2; /* 聚焦时的蓝色边框，呼应你网站的蓝色主题 */
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 选项行 (记住我 & 忘记密码) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
    padding: 0; /* 确保没有内边距干扰 */
    width: 100%; /* 确保占满整行 */
    padding: 0.25rem 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    line-height: 1; /* 消除行高带来的额外空白 */
}

.remember-me input {
    margin: 0; /* 清除浏览器默认边距 */
    margin-right: 5px; /* 手动控制与文字的间距 */
    width: 14px;  /* 可选：固定大小，防止不同浏览器渲染尺寸不一 */
    height: 14px; /* 可选：固定大小 */
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none !important;
}

.forgot-password:hover {
    text-decoration: underline;
    opacity: 0.7;
}

/* 登录按钮 */

.login-btn-link{
    display: flex;           /* 启用 Flexbox 布局 */
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    height: atuo;           /* 让容器高度等于整个屏幕的高度 */
    width: atuo;             /* 宽度占满整个屏幕 */
}

.login-btn {
    padding: 0.25rem 1.25rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: var(--primary);
    opacity: 0.7;
}

/* 底部注册链接 */
.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary);
    text-decoration: none !important;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
    opacity: 0.7;
}

/* 页脚 */
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;             /* 【关键】让文字基线更紧凑，对齐更精准 */
}

@media (max-width: 600px) {
	main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "central"
      "right";
  }
  /*.Right-map-1 { height: 200px; }*/   /* 单列时给个固定高度 */     
}
