/* 公共样式文件 - 头部、尾部、通用样式 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  border: none;
  vertical-align: middle;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* 颜色变量 */
:root {
  --primary-blue: #1e88e5;
  --primary-dark: #1565c0;
  --bg-dark: #1a237e;
  --bg-gradient-start: #1a237e;
  --bg-gradient-end: #0d47a1;
  --text-white: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light-gray: #999999;
  --border-color: #e0e0e0;
  --bg-light: #f5f5f5;
  --bg-gray: #eeeeee;
}

/* ==================== 头部样式 ==================== */
.header {
  background: #fff;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: left;
  align-items: center;
  width: 1200px;
  margin: 0 auto;
}

.header-top {
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
}

/* 导航栏 */
.nav {
  background: #fff;
}

.nav-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-item a {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-item:hover a,
.nav-item.active a {
  color: var(--primary-blue);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px 2px 0 0;
}

/* ==================== Banner样式 ==================== */
.banner {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-text {
  text-align: left;
}

.banner-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--text-white);
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-icons {
  display: flex;
  gap: 30px;
  opacity: 0.8;
}

.banner-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.banner-icon svg {
  width: 50px;
  height: 50px;
  fill: rgba(255, 255, 255, 0.9);
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
  background: var(--bg-gray);
  padding: 12px 0;
}

.breadcrumb-inner {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.breadcrumb-inner a {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.breadcrumb-inner a:hover {
  color: var(--primary-blue);
}

.breadcrumb-inner span {
  margin: 0 8px;
  color: var(--text-light-gray);
}

/* ==================== 页脚样式 ==================== */
.footer {
  padding: 40px 0 30px;
  margin-top: 40px;
  width: 100%;
  background: linear-gradient(180deg, #005CD5 0%, #9EEDFF 100%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex: 1;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  display: block;
  color: #fff;
}

.footer-title-img{
  margin-top: 10px;
  margin-bottom: 20px;
}

.footer-content {
  color: var(--text-white);
  font-size: 14px;
  line-height: 2;
  opacity: 0.9;
}

.footer-content p {
  margin-bottom: 5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}
.footer-links li {
  margin-bottom: 8px;
  width: 45%;
}

.footer-links a {
  color: var(--text-white);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-qrcode {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}

.footer-qrcode img {
  width: 100px;
  height: 100px;
}

.footer-copyright {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: var(--text-white);
  font-size: 12px;
  opacity: 0.7;
}

/* ==================== 分页组件 ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.pagination a,.layui-laypage-curr {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.layui-laypage-curr{
  background: var(--primary-blue);
  color: #fff;
}

.pagination a:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.pagination a.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
}

.pagination a.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-info {
  color: var(--text-gray);
  font-size: 14px;
  margin-left: 20px;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-item {
    padding: 10px 15px;
  }

  .banner {
    height: 150px;
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-icons {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-title {
    display: block;
  }
}