body {
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  margin: 0;
}

/* 头部样式 */
.header-area {
  background-color: transparent;
}

.header-area .logo {
  color: #fff;
}

.header-area .nav a {
  color: #fff;
}

.header-area .nav a:hover,
.header-area .nav a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* 主横幅样式 */
.main-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 80vh;
  text-align: center;
  color: #ecf0f1;
}



.center-text h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.center-text p {
  font-size: 16px;
  margin-bottom: 30px;
  margin: 20px auto;
  margin-bottom: 40px;
  max-width: 790px;
}
.mobile-text {
  display: none;
}

/* 搜索栏样式 */

.search-bar {
  position: relative;
  width: 1000px;
  margin: 0 auto 30px auto;
  text-align: left;
  background-color: transparent;
  display: flex;
  align-items: center; /* 确保子元素垂直居中 */
}
.search-bar select,
.search-bar input[type="text"],
.search-bar button {
  height: 54px; /* 【核心修改】强制统一高度 */
  box-sizing: border-box; /* 【核心修改】内边距不撑大盒子 */
  padding: 0 15px; /* 上下padding改为0，靠height和flex居中 */
  font-size: 18px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  outline: none;
  background: white;
  font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
  vertical-align: middle;

  -webkit-appearance: none;
    /* 关键：移除iOS和Android的默认外观 */
  -moz-appearance: none;
  appearance: none;
}

.search-bar select {
  border-radius: 10px 0 0 10px;
  border-right: none;
  min-width: 140px;
  cursor: pointer;
  color:#666;
  text-align: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.search-bar select option{
  line-height: 54px;
}

.search-bar input[type="text"] {
  flex: 1;
  border-left: none;
  border-right: none;
  border-radius: 0;

  /* === 修改的部分 START === */
  /* 不要使用 line-height: 54px，改成 normal */
  line-height: normal;
  /* 确保高度被强制执行 */
  height: 54px;
  /* 如果文字不居中，可以使用 padding 调整，但通常 height + line-height: normal 就够了 */
  /* 或者使用 Flexbox 布局的父级 (search-bar) 已经有了 align-items: center，
        但在 input 内部，line-height: normal 是最安全的 */
  /* === 修改的部分 END === */
}

.search-bar button {
  border-radius: 0 10px 10px 0;
  border-left: none;
  background-color: #798095;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 120px; /*稍微加宽一点，放下图标和文字*/
  display: flex;    /* 让按钮内的图标和文字居中 */
  justify-content: center;
  align-items: center;
}

.search-bar button:hover {
  background-color: #8d99af;
}

/* 【核心修改】修复图标显示 */
#searchButton::before {
  content: "\e90a";  /* 放大镜图标 */
  font-family: 'icomoon'; /* 【必须添加】指定字体库，否则不显示 */
  margin-right: 8px;
  font-size: 18px; /* 调整图标大小 */
  font-weight: normal;
  line-height: 1;
}

/* 其他高级搜索栏样式见advancedSearch.css */

.form-group label {
  text-align: left;
}

/* 小图标 */
.categories {
  display: flex;
  /* 让所有列表项水平排列 */
  justify-content: center;
  /* 居中对齐 */
  padding: 0;
  /* 去掉默认的内边距 */
  margin-top: 100px;
}

.categories li {
  list-style: none;
  /* 移除默认列表样式 */
  width: 166px;
  /* 平分容器宽度，每个占1/4 */
  text-align: center;
  /* 文字居中显示 */
}

.categories li span {
  color: white;
  font-size: 14px;
}

.categories a {
  display: flex;
  /* 使用flex布局 */
  flex-direction: column;
  /* 子元素垂直排列 */
  align-items: center;
  /* 水平居中子元素 */
  text-decoration: none;
  /* 移除下划线 */
  color: black;
  /* 设置链接颜色 */
  transition: color 0.3s;
  /* 平滑颜色变化 */
}

.categories .icon {
  position: relative;
  background: white;
  /* 背景颜色为白色 */
  width: 66px;
  /* 宽度 */
  height: 66px;
  /* 高度 */
  border-radius: 50%;
  /* 圆形 */
  display: flex;
  /* 使用flex布局 */
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  margin-bottom: 10px;
  /* 与文本间隔 */
  transition: background-color 0.3s;
}

.categories .icon {
  font-family: 'icomoon';
  font-size: 40px;
  /* 图标大小 */
  color: #8d99af;
  /* 图标颜色 */
}

/* 为每个分类添加不同的图标 */
.categories li:nth-child(1) .icon::before {
  content: "\e921";  /* 法律法规 - icon-library */
}

.categories li:nth-child(2) .icon::before {
  content: "\e902";  /* 行政处罚 - icon-auction */
}

.categories li:nth-child(3) .icon::before {
  content: "\e907";  /* 学习手册 - icon-book */
}

.categories li:nth-child(4) .icon::before {
  content: "\e905";  /* 练习题库 - icon-presentation */
}

.categories li:nth-child(5) .icon::before {
  content: "\e909";  /* 反洗钱工具 - icon-tools */
}



.categories li:not(.dev):hover .icon {
  background-color: #2c2d41;
}


.categories li:not(.dev):hover .icon i {
  color: #3498db;
}

.categories li.dev .icon::after {
  content: "准备中";
  display: none;
  /* 默认不显示 */
  position: absolute;
  width: 66px;
  height: 66px;
  top: 0;
  left: 0;
  background-color: #2c2d41;
  /* 覆盖背景 */
  color: white;
  /* 文字颜色 */
  font-size: 14px;
  /* 字体大小 */
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  /* 圆形背景 */
}

.categories li.dev:hover .icon::after {
  display: flex;
  /* 鼠标悬停时显示文本 */
}


/* 首页移动端汉堡菜单样式 */
@media (max-width: 768px) {
  .mobile-menu-toggle .hamburger-line {
      background-color: #fff;
  }

  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1),
  .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
      background-color: #fff;
  }

  .header-area .nav a {
    color: #333;
  }
  
  .header-area .nav a:hover,
  .header-area .nav a.active {
    color: #333;
    background-color: rgba(255, 255, 255, 0.2);
  }

}
.site-footer {
  color:white !important;
}
/* =========================================
   移动端适配样式 (Max-width: 768px)
   ========================================= */
   @media (max-width: 768px) {

    /* 1. 调整主容器和背景 */
    .main-banner {
      height: auto; /* 取消固定高度，允许内容撑开 */
      min-height: 70vh; /* 保证至少满屏 */
      padding: 40px 15px 40px; /* 增加顶部内边距(避开导航栏)和左右内边距 */
    }
  
    /* 2. 调整中间文字 */
    .center-text h1 {
      font-size: 36px; /* 缩小标题 */
      margin-bottom: 15px;
    }
  
    .center-text p {
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 30px;
      padding: 0 10px; /* 防止文字贴边 */
      display: none;
    }
    .mobile-text {
      display: block !important;
    }
  
    /* 3. 搜索栏由“横排”改为“竖排”堆叠 */
    
    .main-banner .container {
      width: 100%;       /* 强制宽度占满屏幕 */
      max-width: 1200px; /* 设定一个合理的内容最大宽度（根据你的common.css可能已有设置，这里是保险起见） */
      padding: 0 15px;   /* 左右留一点缝隙，防止贴边 */
      box-sizing: border-box; /* 确保padding不撑大宽度 */
    }
    
    .search-bar {
      width: 100%; /* 宽度占满容器 */
      max-width: 1000px;
      flex-direction: column; /* 【关键】垂直排列 */
      height: auto; /* 高度自适应 */
      margin-bottom: 40px;
    }
  
    .search-bar select,
    .search-bar input[type="text"],
    .search-bar button {
      width: 100%; /* 让每个控件都占满一行 */
      border-radius: 8px; /* 全部改为圆角 */
      margin-bottom: 10px; /* 增加垂直间距 */
      border: 1px solid #ccc; /* 恢复被桌面端去掉的边框 */
      /* 保持高度和内边距不变，继承自桌面端 */
    }
  
    /* 修正下拉框样式 */
    .search-bar select {
      border-right: 1px solid #ccc; /* 恢复右边框 */
      background-position: right 15px center; /* 箭头稍微往里一点 */
    }
  
    /* 修正输入框样式 */
    .search-bar input[type="text"] {
      flex:none;
      border-left: 1px solid #ccc; /* 恢复左边框 */
      border-right: 1px solid #ccc; /* 恢复右边框 */
    }
  
    /* 修正按钮样式 */
    .search-bar button {
      border-left: 1px solid #ccc; /* 恢复左边框 */
      background-color: #798095;
      margin-bottom: 0; /* 最后一个不需要下边距 */
    }
  
    /* 4. 调整底部图标分类为网格布局 */
    .categories {
      flex-wrap: wrap; /* 【关键】允许换行 */
      margin-top: 20px; /* 减少顶部距离 */
      width: 100%;
      display: none;
    }
  
    .categories li {
      width: 33.33%; /* 一行放3个 (33.33%) 或者 一行放2个 (50%) */
      margin-bottom: 20px; /* 增加行间距 */
    }
    
    /* 调整图标大小，适应小屏幕 */
    .categories .icon {
      width: 50px;
      height: 50px;
      font-size: 24px; /* 缩小内部图标 */
    }
    
    .categories .icon::before {
      font-size: 24px; /* 确保图标字体也缩小 */
    }
  
    /* 针对 "准备中" 的遮罩层也需要缩小 */
    .categories li.dev .icon::after {
      width: 50px;
      height: 50px;
      font-size: 12px;
    }
    
  }