/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 内容区域样式 */
.content {
    height: calc(100vh - 200px); /* 减去header和footer的高度 */
    min-height: 1000px;
    position: relative;
    margin: 30px auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}
/* Header Styles */
/* Header Styles */
.header-top {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-top .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .header-top .container {
    flex-direction: column;
    padding: 10px;
  }
  .header-icons-right {
    margin-top: 10px;
    gap: 20px;
  }
}

.logo-icons {
  display: flex;
  align-items: center;
}

.header-icons-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-logo {
  height: 60px;
}

.header-icon {
  height: 70px;
}

.header-main {
  background: #f5f5f5;
  padding: 20px 0;
}

.header-main .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .header-main .container {
    flex-direction: column;
  }
  .main-nav {
    flex-direction: column;
    margin: 10px 0;
  }
  .main-nav a {
    padding: 10px;
    text-align: center;
  }
}

/* 主导航样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin: 0 100px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 激活状态样式 */
.main-nav a.active {
    color: #fff !important; /* 添加 !important 确保样式生效 */
    background-color: #ff6633;
    box-shadow: 0 2px 8px rgba(255, 102, 51, 0.3);
}

/* 悬停效果 */
.main-nav a:hover {
    color: #fff;
    background-color: #ff6633;
    transform: translateY(-2px);
}

.logo img {
  max-height: 60px;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
/*  */
/* 子导航样式 */
.sub-nav {
background: #fff;
border-bottom: 1px solid #eee;
margin-bottom: 40px;
}

.sub-nav ul {
list-style: none;
display: flex;
justify-content: center;
padding: 0;
margin: 0;
}

.sub-nav li {
padding: 15px 30px;
}

.sub-nav a {
color: #333;
text-decoration: none;
font-size: 16px;
transition: color 0.3s;
}

.sub-nav a {
display: block;
padding: 10px 20px;
border-radius: 4px;
transition: all 0.3s ease;
}

.sub-nav a.active {
background-color: #ff6633;
color: white;
}

.sub-nav a:hover {
background-color: rgba(255, 102, 51, 0.1);
color: #ff6633;
}
/* Banner图片样式 */
.bannerImg {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.bannerImg img {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
}

@media (max-width: 768px) {
  .bannerImg img {
    max-height: 300px;
  }
}
@media (min-width: 1600px) {
  .main-nav a {
    font-size: 20px; /* 增大导航字体 */
  }
  .bannerImg img {
    min-height: 500px;
  }
  .sub-nav a{
    font-size: 20px;
  }
}

@media (min-width: 2500px) {
  .main-nav a {
    font-size: 20px; /* 增大导航字体 */
  }
  .bannerImg img {
    min-height: 800px;
  }
  .sub-nav a{
    font-size: 20px;
  }
}

/* 页脚样式 */
.footer {
    background: #1f2937;
    color: #fff;
    padding: 40px 0 20px;
  }
  .footer .container{
    width: 80%;
    margin: 0 auto;
  }
  /* 页脚内容布局 */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav,
  .footer-contact {
    margin: 10px 0;
  }
  .footer-qr {
    justify-content: center;
  }
}
  
  .footer-nav {
    /* flex: 1; */
    min-width: 200px;
    margin: 0 15px;
  }
  
  .footer-contact {
    /* flex: 1.5; */
    min-width: 250px;
  }
  
  .footer-qr {
    /* flex: 1; */
    min-width: 200px;
    justify-content: flex-start;
    gap: 30px;
  }
  
  /* 导航列表样式 */
  .footer-nav h3,
  .footer-contact h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: normal;
  }
  
  .footer-nav ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-nav ul li {
    margin-bottom: 10px;
  }
  
  .footer-nav ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .footer-nav ul li a:hover {
    color: #ff6633;
  }
  
  /* 联系信息样式 */
  .footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
  /* 二维码样式 */
  .footer-qr {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
  }
  
  .qr-item {
    text-align: center;
  }
  
  .qr-item img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  
  .qr-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.4;
  }
  
  /* 底部版权信息 */
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
  }
  
  .copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: inline-block;
  }
  
  .copyright p:first-child {
    margin-right: 20px;
  }
  
  .copyright a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
  }
  
  /* 回到顶部按钮样式 */
  .back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #ff6633;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .back-to-top.show {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background: #e65c2e;
    transform: translateY(-5px);
  }
  
  .back-to-top i {
    font-size: 20px;
  }
  
  /* 回到顶部按钮样式 */
  .back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #ff6633;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .back-to-top.show {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background: #e65c2e;
    transform: translateY(-5px);
  }
  
  .back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  
  /* 响应式调整 */
  @media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-qr {
        grid-column: span 2;
        justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-qr {
        grid-column: auto;
    }
    
    .copyright p {
        display: block;
        margin: 5px 0;
    }
    
    .copyright p:first-child {
        margin-right: 0;
    }
  }
  #back-to-top {
    position: fixed;
    right: 30px;
    bottom: 130px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    display: none;
}

#back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
}

/* 添加新闻描述的多行省略样式 */
.news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    line-height: 1.5;
    max-height: 4.5em;
}
