/* 基础样式 */
:root {
    --primary-color: #0052cc;
    --secondary-color: #f0f5ff;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 70px; /* 防止内容被header遮挡 */
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    
	 /* padding: 80px 15px;*/
}

img {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #003d99;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-text {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
}

.btn-text::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.btn-text:hover::after {
    margin-left: 10px;
}

/* 导航栏 */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 70px;
  transition: opacity 0.4s;
}
header.fadeout {
  opacity: 0;
  pointer-events: none;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.logo img {
    height: 40px;
}

    
    /* 二级导航样式 */
    .sub-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        min-width: 160px;
        z-index: 100;
        border-radius: 4px;
    }
    
    nav ul li:hover > .sub-nav {
        display: block;
    }
    
    /* 三级导航样式 */
    .sub-sub-nav {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        min-width: 160px;
        z-index: 101;
        border-radius: 4px;
    }
    
    .sub-nav li:hover > .sub-sub-nav {
        display: block;
    }
    
    /* 菜单项分隔线 */
    .sub-nav li, .sub-sub-nav li {
        border-bottom: 1px solid #eee;
    }
    
    .sub-nav li:last-child, .sub-sub-nav li:last-child {
        border-bottom: none;
    }
    
    /* 平滑过渡效果 */
    .sub-nav, .sub-sub-nav {
        animation: fadeIn 0.2s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }


    

    


nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}


nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}



/* 二级导航容器优化 */
nav ul li .sub-nav {
    display: none;
    position: absolute;
    top: 100%;        /* 紧贴一级导航底部 */
    left: -5%;        /* 定位到一级导航中心位置 */
    transform: translateX(-5%); /* 向左平移50%实现精准居中 */
    background-color: #f3f3f3;
    border-radius: 6px;
    padding: 10px 0;  /* 垂直内边距，水平内边距通过菜单项控制 */
    z-index: 1001;
    opacity: 0;
    transform: translateX(-50%) translateY(8px); /* 初始偏移量（上移8px） */
    transition: 
        opacity 0.3s ease, 
        transform 0.3s ease, 
        display 0s 0.3s;
    min-width: 100%;  /* 最小宽度与一级导航一致 */
    box-sizing: border-box; /* 确保内边距不影响宽度 */
    text-align: center;     /* 二级菜单文本居中 */
}

/* 一级导航样式（关键属性） */
nav ul li {
    position: relative;
    padding: 5px 1em; /* 一级导航内边距，决定二级菜单基准宽度 */
}

/* 二级菜单项样式 */
nav ul li .sub-nav li {
    padding: 8px 1.5em; /* 与一级导航内边距一致，保持视觉对齐 */
    white-space: nowrap;
}

/* 鼠标悬停时的显示效果 */
nav ul li:hover .sub-nav {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* 显示时取消偏移 */
}

/* 二级菜单项优化 */
nav ul li .sub-nav li {
    margin: 0;
    padding: 6px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav ul li .sub-nav li a {
    color: var(--text-color);
    font-weight: 400; /* 区分一级菜单权重 */
    font-size: 0.85rem; /* 略小字体 */
}

/* 交互状态优化 */
nav ul li:hover .sub-nav {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: 
        opacity 0.3s ease,
        transform 0.3s ease;
}

nav ul li .sub-nav li:hover a {
    color: var(--primary-color);
}

/* 响应式适配增强 */
@media (max-width: 768px) {
    nav ul li .sub-nav {
        position: relative;
        box-shadow: none;
        border-top: 1px solid #eee; /* 分隔线替代阴影 */
        border-radius: 0;
        padding: 8px 0;
        opacity: 1;
        transform: translateY(0);
        display: none; /* 保持移动端默认隐藏 */
    }

    nav ul li.active .sub-nav {
        display: block; /* 移动端通过.active控制显示 */
    }
}

/* 背景图片+介绍部分 */
.hero-section {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-image: url('../images/hero-bg.jpg');
  display: flex;
  margin-bottom: 50px;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 15%;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
}

/* 导航栏右侧图标容器样式 */
        .header-right-icons {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .header-icon {
            width: 28px;
            height: 28px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .header-icon:hover {
            transform: scale(1.1);
        }

        /* 搜索框弹窗样式 */
        .search-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        
        .search-popup {
            width: 90%;
            max-width: 600px;
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            position: relative;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.3s;
        }
        
        .search-overlay.active .search-popup {
            transform: scale(1);
            opacity: 1;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 40px 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            outline: none;
        }
        
        .search-button {
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
        }
        
        .close-search {
            position: absolute;
			right: 5px;
			top: 0px;
            cursor: pointer;
            color: #666;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .fade-in {
            animation: fadeIn 0.3s ease forwards;
        }
        
        /* 响应式适配 */
        @media (max-width: 768px) {
            .header-right-icons {
                gap: 10px;
            }
            
            .header-icon {
                width: 24px;
                height: 24px;
            }
            
            .search-popup {
                padding: 15px;
            }
            
            .search-input {
                padding: 10px 35px 10px 10px;
                font-size: 14px;
            }
            
            .search-button {
                right: 25px;
            }
            .hero-content h1 {
                font-size: 1.8rem;
            }
            .hero-content p {
                font-size: 1rem;
            }
            .hero-section {
                height: 350px;
                margin-bottom: 0px;
            }
            section {
                padding: 15px 0;
            }

        }
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        padding: 10px;
    }
    nav ul {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 15px 0;
        text-align: center;
        position: relative; /* 移动端二级菜单也需定位 */
    }
    /* 移动端二级导航调整，默认展开或者按需修改交互（比如点击展开），这里简单处理为显示 */
    nav ul li .sub-nav {
        position: relative; 
        top: auto;
        left: auto;
        box-shadow: none;
        padding: 5px 0;
        display: none; /* 移动端可改成点击触发显示，这里先隐藏 */
    }
    nav ul li:hover .sub-nav {
        display: block;
    }
    .mobile-menu-btn {
        display: block;
    }
}
   

  

  

  	
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        padding: 10px;
    }
    nav ul {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        box-shadow: var(--shadow);
        display: none;
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 0;
        text-align: center;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* 底部 */

  
.footer {
    /*background: #222;*/
    background: #222a4e;
    color: #fff;
    padding: 50px 0 20px;
  }
  
  .footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16%, 1fr));
    gap: 30px;
  }
  
  .footer-logo {
    margin-bottom: 20px;
  }
  
  .footer-logo img {
    height: 40px;
  }
  
  .footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
  }
  
  .footer-links a:hover {
    color: #144db8;
  }
  
  .footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 14px;
  }
  
  .footer-contact i {
    margin-right: 10px;
    color: #144db8;
  }
  
  .footer-bottom {
    max-width: 1500px;
    margin: 30px auto 0;
    padding: 20px 15px 0;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
  }
  
  .social-icons {
    display: flex;
  }
  
  .social-icons a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background 0.3s ease;
    text-decoration: none; /* 添加这行来移除下划线 */
  }
  
  .social-icons a:hover {
    background: #144db8;
    color: #fff;
  }

  .fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
  }
  .fade-up.active {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
  }
  .fade-left.active {
    opacity: 1;
    transform: translateX(0);
  }

  .fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
  }
  .fade-right.active {
    opacity: 1;
    transform: translateX(0);
  }

  .fade-down {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 1s ease;
  }
  .fade-down.active {
    opacity: 1;
    transform: translateY(0);
  }



  @media (max-width: 768px) {

    
    .footer-container {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 0 20px;
    }

    .footer-logo {
      text-align: center;
    }

    .footer-logo img {
      margin: 0 auto;
    }
    
    .footer-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
      color: #fff;
      position: relative;
      padding-left: 15px;
      cursor: pointer;
      padding-right: 30px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 15px;
    }

    .footer-title::before {
      content: '';
      position: absolute;
      left: 0;
      top: 40%;
      transform: translateY(-50%);
      width: 4px;
      height: 20px;
      background: #144db8;
    }

    .footer-title::after {
      content: '+';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      font-size: 20px;
      color: #fff;
      transition: transform 0.3s ease;
    }
    
    .footer-title.active::after {
      content: '-';
    }
    
    .footer-links {
      display: none;
      padding-left: 15px;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .footer-links.active {
      display: block;
      max-height: 500px;
    }
    
    .footer-links li {
      position: relative;
      padding-left: 15px;
    }

    .footer-links li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 3px;
      background: #1975c5;
    }
  }



           /* 分页容器样式 */
           .page {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 2rem 0;
            padding: 0.5rem;
            font-family: 'Inter', system-ui, sans-serif;
        }
        
        /* 分页链接通用样式 */
        .page a, .page span {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-width: 2.5rem;
            height: 2.5rem;
            padding: 0 0.75rem;
            margin: 0 0.125rem;
            text-decoration: none;
            color: #374151;
            border-radius: 0.375rem;
            transition: all 0.2s ease;
            font-size: 0.9375rem;
            font-weight: 500;
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        /* 分页链接悬停效果 */
        .page a:hover:not(.page-num-current):not(.hide) {
            background-color: #f9fafb;
            border-color: #d1d5db;
            color: #1f2937;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        /* 当前页码样式 */
        .page .page-num-current {
            background-color: #165DFF;
            color: #ffffff;
            border-color: #165DFF;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(22, 93, 255, 0.2);
        }
        
        /* 隐藏不需要显示的按钮 */
        .page .hide {
            display: none !important;
        }
        
        /* 首页和尾页按钮样式 */
        .page .page-index, .page .page-last {
            padding: 0 1rem;
        }
        
        /* 移动端适配 */
        @media (max-width: 640px) {
            .page {
                margin: 1.5rem 0;
                padding: 0.25rem;
            }
            
            .page a, .page span {
                min-width: 2rem;
                height: 2rem;
                padding: 0 0.5rem;
                font-size: 0.875rem;
            }
            
            .page .page-index, .page .page-last {
                padding: 0 0.75rem;
            }
        }




/* 行动召唤（CTA）板块美化 */
.cta-section {
    background: #eceff6;
    color: #fff;
    padding: 80px 0 70px 0;
    text-align: center;
}

.cta-section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #1b294c;
}

.cta-section-desc {
    font-size: 1.15rem;
    margin-bottom: 38px;
    color: #1b294c;
}

.cta-section-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-section-btn {
    background: #1c2a4d;
    color: #f8f8f8;
    border: none;
    border-radius: 999px;
    padding: 16px 38px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
    margin-bottom: 10px;
}

.cta-section-btn:hover {
    background: #384e86;
    color: #f8f8f8;
}

.cta-section-btn.secondary {
    background: transparent;
    color: #1c2a4d;
    border: 2px solid #1c2a4d;
}

.cta-section-btn.secondary:hover {
    background: #1c2a4d;
    color: #f3f4f7;
}

/* 响应式优化 */
@media (max-width: 600px) {
    .cta-section {
        padding: 48px 0 38px 0;
    }
    .cta-section-title {
        font-size: 1.4rem;
    }
    .cta-section-desc {
        font-size: 1rem;
    }
    .cta-section-buttons {
        flex-direction: column;
        gap: 14px;
    }
    .cta-section-btn {
        width: 100%;
        padding: 14px 0;
    }
}




   
/* 行动召唤2 */
.contact-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
    margin-top: 50px;
    background-image: linear-gradient(to right, rgba(0,86,179,0.05), rgba(0,86,179,0.1), rgba(0,86,179,0.05));
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #0056b3;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0056b3;
    color: #0056b3;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #003d7a;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-outline:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .contact-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        padding: 12px 20px;
    }
}
