 :root {
      --primary-color: #b33436;
      --text-color: #333;
      --border-color: #eee;
      --white-transparent: rgba(255, 255, 255, 0.8);
      --black-transparent: rgba(0, 0, 0, 0.6);
      --black-transparent-dark: rgba(0, 0, 0, 0.85);
      --date-bg-color: #f0f0f0;
      --navbar-height: 70px; /* 导航栏高度 */
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Arial, sans-serif;
      overflow-x: hidden;
      /* background-image: url('http://www.hbchuangye.com//static/images/newsbg_2025.png'); */
      background-size: cover;
      background-position: center top;
      background-attachment: fixed;
      background-repeat: no-repeat;
    }

    /* 顶部导航栏 */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background: var(--black-transparent);
      color: white;
      padding: 1rem 1rem; /* 减少左右padding */
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-size: 1.4rem;
      font-weight: bold;
      color: white;
    }

    .logo img {
        max-height: 40px;
    }

    .nav-links {
      display: flex;
      list-style: none;
      margin-right:50px;
    }

    .nav-links li {
      position: relative;
      margin-left: 1rem;
    }

    /* 一级导航链接 - 默认半透明 */
    .nav-links > li > a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      display: block;
      padding: 0.4rem 0;
      transition: color 0.2s;
      font-size: 0.95rem;
    }

    .nav-links > li > a:hover,
    .nav-links > li:hover > a {
      color: white;
    }

    /* 二级下拉菜单 */
    .dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      background: #4B0000;
      min-width: 120px;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
      z-index: 1001;
    }

    .dropdown a {
      display: block;
      padding: 0.5rem 0.8rem;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.2s, background-color 0.2s;
    }

    .dropdown a:hover {
      color: white;
      background-color: rgba(255, 255, 255, 0.1);
    }

    /* 悬停显示下拉 */
    .nav-item-has-dropdown:hover .dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* 幻灯片区域 */
    .hero-slider {
      position: relative;
      height: calc(100vh - var(--navbar-height)); /* 顶部幻灯片占满视口 */
      overflow: hidden;
    }

    /* 左侧小幻灯片 */
    .small-hero-slider {
      position: relative;
      height: 0;
      padding-bottom: 75%; /* 4:3 比例 */
      overflow: hidden;
      cursor:pointer;
    }

    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
      background-size: cover;
      background-position: center center;
    }

    .slide.active {
      opacity: 1;
    }

    .slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .slide.active video {
      display: block;
    }

    .slide-content {
      position: absolute;
      bottom: 20%;
      left: 5%;
      color: white;
      text-shadow: 0 2px 4px rgba(0,0,0,0.7);
      max-width: 50%;
    }

    /* 小幻灯片内容隐藏 */
    .small-slide-content {
      display: none;
    }

    h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    /* 圆点指示器 */
    .slider-indicators {
      position: absolute;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 900;
    }

    .indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .indicator.active {
      background-color: white;
    }

    /* 左侧幻灯片下方信息样式 */
    .slide-info {
      padding: 20px;
      background: var(--white-transparent);
      margin-top: 10px;
      border-radius: 4px;
      height: 160px; /* 固定高度，确保能显示两行文字 */
      display: flex;
      flex-direction: column;
      cursor:pointer;
    }
    .slide-title {
      margin: 0 0 10px 0;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .slide-title :hover{
      underline:none;
      color:#e47061;;
    }
    .slide-date {
      display: block;
      color: #666;
      margin-bottom: 10px;
      flex-shrink: 0;
    }
    .slide-desc {
      margin: 0;
      color: var(--text-color);
      flex-grow: 1;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      text-overflow: ellipsis;
    }
    .slide-title-link {
  text-decoration: none;
  color: inherit;
}

.slide-title-link:hover h3.slide-title {
  color: #e47061;
  text-decoration: none;
}
.slide-info a:hover{
  color: #e47061;
  text-decoration: none;
}

.slide-info a span:hover{
  color: #e47061;
  text-decoration: none;
}
.slide-info a p:hover{
  color: #e47061;
  text-decoration: none;
}

    /* 新闻动态标题和横线样式 */
    .news-header {
      position: relative;
      margin-bottom: 20px;
      width: 100%;
    }
    
    .news-line {
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--primary-color);
    }

    /* 中间新闻模块样式 */
    .news-module {
      background: var(--white-transparent);
      padding: 20px;
      border-radius: 4px;
      margin-top: 0; /* 顶部间距改为0 */
      height: 397px; /* 与左侧对齐: slide-info高度(160px) + margin-top(10px) + 8条新闻项高度(360px) */
    }
    .news-module h2 {
      margin-top: 0;
      font-size: 1.2rem;
      color: var(--text-color);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 10px;
    }
    .news-list {
      list-style: none;
      padding: 0;
    }
    .news-item {
      padding: 10px 0;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .news-item:last-child {
      border-bottom: none;
    }
    .news-item::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background-color: #4b0000;
      flex-shrink: 0;
    }
    .news-date {
      display: inline-block;
      width: 60px;
      color: #666;
      margin-left: auto;
      text-align: right;
      float: right;
    }
    .news-link {
      color: var(--text-color);
      text-decoration: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }
    .news-link:hover {
      color: #e47061;
      text-decoration: underline;
    }

    /* 右侧通知公告模块样式 */
    .notice-module {
      background: var(--white-transparent);
      padding: 20px;
      border-radius: 4px;
      margin-top: 0; /* 顶部间距改为0 */
      height: 395px; /* 与左侧对齐: slide-info高度(160px) + margin-top(10px) + 5条公告项高度(225px) */
    }
    .notice-module h2 {
      margin-top: 0;
      font-size: 1.2rem;
      color: var(--text-color);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 10px;
    }
    .notice-list {
      list-style: none;
      padding: 0;
    }
    .notice-item {
      padding: 10px 0;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
    }
    .notice-item:last-child {
      border-bottom: none;
    }
    
    /* 新的日期样式 */
    .notice-date-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-color: #4b0000;
      padding: 5px 10px;
      border-radius: 4px;
      margin-right: 15px;
      min-width: 50px;
      flex-shrink: 0;
    }
    
    .notice-year {
      font-size: 0.8rem;
      color: #f1f1f1;
      font-weight: bold;
    }
    
    .date-separator {
      width: 60%;
      height: 1px;
      background-color: #f1f1f1;
      margin: 2px 0;
    }
    
    .notice-date {
      font-size: 0.9rem;
      color: #f3f3f3;
      font-weight: bold;
    }
    
    .notice-link {
      color: var(--text-color);
      text-decoration: none;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .notice-link:hover {
      color: #e47061;
      text-decoration: underline;
    }

    /* 布局容器样式 */
    .layout-container {
      display: grid;
      grid-template-columns: 300px 1fr 300px;
      gap: 20px;
      padding: 20px;
      max-width: 1200px;
      margin: 0 auto;
      align-items: start;
      position: relative;
      margin-top: 20px;
      background-color: transparent;
      border-radius: 8px;
      padding: 30px;
    }
    .left-column {
      grid-column: 1;
    }
    .middle-column {
      grid-column: 2;
      position: relative;
    }
    .right-column {
      grid-column: 3;
    }
    
    /* 新增的头部区域容器，用于左右布局 */
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 20px;
      grid-column: 1 / -1;
    }
    
    .news-header-flex {
      flex: 1;
      position: relative;
      margin-right: 20px;
    }
    
    .notice-header-flex {
      width: 300px;
      position: relative;
    }
    
    /* 分段横线样式 */
    .news-line-segment {
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: #b33436;
    }
    
    .notice-line-segment {
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: #b33436;
    }
    
    /* "更多"链接样式 */
    .more-link {
      color: #313131;
      text-decoration: none;
      font-size: 0.9rem;
      position: relative;
      top: 2px;
    }
    
    .more-link:hover {
      text-decoration: underline;
    }
    
    /* 标题容器样式 */
    .title-container {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
    }
    
    .title-text {
      margin: 0;
      font-size: 1.5rem;
      color:#b33436;
    }

    /* 跑马灯模块样式 */
    .marquee-section {
      grid-column: 1 / -1;
      margin-top: 40px;
      padding: 30px 0;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 8px;
    }

    .marquee-title {
      text-align: center;
      font-size: 1.5rem;
      color: #b33436;
     /*  margin-bottom: 20px; */
      position: relative;
    }

    .marquee-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      /* background: #b33436; */
      margin: 10px auto 0;
      border-radius: 3px;
    }

    .marquee-container {
      overflow: hidden;
      position: relative;
      padding: 10px 0;
    }

    .marquee-content {
      display: flex;
      animation: marquee 30s linear infinite;
      gap: 30px;
      padding: 10px 0;
    }

    .marquee-content:hover {
      animation-play-state: paused;
    }

    @keyframes marquee {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }

    .marquee-item {
      flex: 0 0 auto;
      width: 200px;
      height: 150px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
    }

    .marquee-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .marquee-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .marquee-item .caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      padding: 8px;
      font-size: 0.9rem;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }

    .marquee-item:hover .caption {
      transform: translateY(0);
    }

    /* 底部双列新闻模块 */
    .bottom-news-section {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      margin-top: 40px;
    }

    .bottom-news-module {
      background: rgba(255, 255, 255, 0.85);
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .bottom-news-module h3 {
      font-size: 1.3rem;
      color: #b33436;
      margin-top: 0;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 2px solid #b33436;
      position: relative;
    }

    .bottom-news-module h3::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 50px;
      height: 2px;
      /* background: #b33436; */
    }
.bottom-news-module h3 span
    {background: url(http://www.hbchuangye.com/static/images/news_bg.png) no-repeat 0; padding-left:22px;}

    .bottom-news-list {
      list-style: none;
    }

    .bottom-news-item {
      padding: 12px 0;
      border-bottom: 1px dashed #ddd;
    }

    .bottom-news-item:last-child {
      border-bottom: none;
    }

    .bottom-news-item a {
      color: var(--text-color);
      text-decoration: none;
      display: block;
      margin-bottom: 5px;
      transition: color 0.3s;
    }

    .bottom-news-item a:hover {
      color: #e47061;
    }

    .bottom-news-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      color: #888;
    }

    .bottom-news-date {
      font-style: italic;
    }

    .bottom-news-tags {
      display: flex;
      gap: 5px;
    }

    .news-tag {
      background: #e0e0e0;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 0.75rem;
    }

 .wrap {
    width: 1200px;
    margin: 0 auto;
}  
@media (max-width: 1200px) {
    .wrap {
        width: 900px;
        padding: 0 15px;
    }
}
@media (max-width: 376px) {
    .wrap {
        width: 350px !important;
        padding: 0 6px;
    }
}
@media (max-width: 429px) {
    .wrap {
        width: 380px !important;
        padding: 0 10px;
    }
}
@media (max-width: 767px) {
    .wrap {
        width: 740px;
        padding: 0 10px;
    }
}
@media (max-width: 999px) {
    .wrap {
        width: 740px;
        padding: 0 10px;
    }
}
@media (max-width: 1024px) {
    .wrap {
        width: 760px;
    }
}
.notice1 { position: relative; width: 100%; height: 200px; margin-top: 16px;}
.notice1 .noticeList{
    width: 100%; 
}
.notice1 .noticeList ul li{
    width: 18%; 
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    margin-right: 1%;
    float: left;
    height: 4rem;
    margin-bottom: 15px;
    border: 1px solid #ccc;
   /*  border-left: 1px solid #616161; */
}
.notice1 .noticeList ul li:hover i{
    width: 100%;
}
.notice1 .noticeList ul li i{

    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    background: #f2f2f2;
    height: 100%;
    z-index: 1;
    -webkit-transition: width 0.3s ease-in-out;
    -moz-transition: width 0.3s ease-in-out;
    -ms-transition: width 0.3s ease-in-out;
    -o-transition: width 0.3s ease-in-out;
    transition: width 0.3s ease-in-out;
}
.notice1 .noticeList ul li .time{
    z-index: 2;
    width: 22%;
    float: left;
    margin-left: 12px;
    border-left: 0px solid #9f9f9f;
    position: relative;

}
.notice1 .noticeList ul li .time .blocks{
    width: 82%;
    height: 100%;
    /*background: #f3f3f3;*/
    margin: 0 auto;
    -webkit-transition: background-color 0.3s ease-in-out;
    -moz-transition: background-color 0.3s ease-in-out;
    -ms-transition: background-color 0.3s ease-in-out;
    -o-transition: background-color 0.3s ease-in-out;
    transition: background-color 0.3s ease-in-out;
}
.notice1 .noticeList ul li .time .blocks img{
    width: 100%;

}

.notice1 .noticeList ul li:hover .infos .mainTitle,
.notice1 .noticeList ul li:hover .infos .subTitle{
    color: #e47061;
}

.notice1 .noticeList ul li .infos{
    text-align: center;
    position: relative;
    width: 55%;
    z-index: 2;
    margin-left: 1%;
    float: left;
}
.notice1 .noticeList ul li .infos .mainTitle{
    color: #494949;
    line-height: 1.5em;
    font-size: 13px;
    margin-top: 12px;
    /*  white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;*/
    padding-left: 1px;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    transition: color 0.3s ease-in-out;
}

    /* 友情链接模块 */
    .friend-links-section {
      grid-column: 1 / -1;
      display: flex;
      margin-top: 40px;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 8px;
      padding: 25px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .friend-links-container {
      flex: 0 0 60%;
      padding-right: 30px;
      border-right: 1px solid #eee;
    }

    .friend-links-title {
      font-size: 1.3rem;
      color: #b33436;
      margin-top: 0;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid #b33436;
      position: relative;
    }

    .friend-links-title::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 50px;
      height: 2px;
      
    }

    .friend-links-list {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      list-style: none;
      max-height: 200px;
      overflow: hidden;
    }

    .friend-link-item {
      flex: 0 0 calc(25% - 15px);
      margin-bottom: 0px;
    }

    .friend-link-item a {
      color: var(--text-color);
      text-decoration: none;
      transition: color 0.3s;
      display: block;
      padding: 0px 0;
    }

    .friend-link-item a:hover {
      color: #e47061;
      text-decoration: none;
    }

    .qrcode-section {
      flex: 0 0 40%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding-left: 30px;
    }

    .qrcode-title {
      font-size: 1.2rem;
      color: #b33436;
      margin-bottom: 20px;
      text-align: center;
    }

    .qrcode-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 25px;
      width: 100%;
    }

    .qrcode-container:last-child {
      margin-bottom: 0;
    }

    .qrcode-images {
      display: flex;
      justify-content: space-around;
      width: 100%;
      margin-top: 15px;
    }

    .qrcode-image-container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .qrcode-image {
      width: 120px;
      height: 120px;
      border: 1px solid #ddd;
      padding: 5px;
      border-radius: 8px;
      margin-bottom: 10px;
    }

    .qrcode-label {
      font-size: 1rem;
      color: var(--text-color);
    }

    /* Footer 模块 */
    .footer {
      background-color: #4b0000;
      color: white;
      width: 100%;
      padding: 20px 0;
      margin-top: 40px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      text-align: center;
    }

    .footer-text {
      margin: 10px 0;
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.8);
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin: 15px 0;
      flex-wrap: wrap;
    }

    .footer-link {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s;
    }

    .footer-link:hover {
      color: white;
      text-decoration: underline;
    }

    /* 文字截断样式 */
    .truncate-22 {
      max-width: 22em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .truncate-28 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* 重复内容以确保无缝滚动 */
    .marquee-content::after {
      content: '';
      position: absolute;
      top: 0;
      left: 100%;
      width: 100%;
      height: 100%;
      background: inherit;
    }

    /* 响应式设计 - 平板 */
    @media screen and (max-width: 1024px) and (min-width: 769px) {
      .layout-container {
        grid-template-columns: 250px 1fr 250px;
        gap: 15px;
        padding: 15px;
      }
      
      .news-header-flex {
        margin-right: 15px;
      }
      
      .notice-header-flex {
        width: 250px;
      }
      
      .friend-link-item {
        flex: 0 0 calc(33.333% - 15px);
      }
      
      .marquee-item {
        width: 160px;
        height: 120px;
      }
      
      .qrcode-image {
        width: 100px;
        height: 100px;
      }
    }

    /* 响应式设计 - 小平板和大手机 */
    @media screen and (max-width: 768px) and (min-width: 481px) {
      .layout-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        max-width: 100%;
      }
      
      .left-column,
      .middle-column,
      .right-column {
        grid-column: 1;
      }
      
      .header-container {
        flex-direction: column;
        align-items: stretch;
      }
      
      .news-header-flex {
        margin-right: 0;
        margin-bottom: 20px;
      }
      
      .notice-header-flex {
        width: 100%;
      }
      
      .bottom-news-section {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .friend-links-section {
        flex-direction: column;
      }
      
      .friend-links-container {
        flex: 1;
        padding-right: 0;
        border-right: none;
        margin-bottom: 20px;
      }
      
      .qrcode-section {
        flex: 1;
        padding-left: 0;
      }
      
      .friend-link-item {
        flex: 0 0 calc(50% - 15px);
      }
      
      .qrcode-images {
        flex-direction: column;
        gap: 20px;
      }
      
      .marquee-item {
        width: 140px;
        height: 105px;
      }
      
      .qrcode-image {
        width: 100px;
        height: 100px;
      }
    }

    /* 响应式设计 - 手机 */
    @media screen and (max-width: 480px) {
      .navbar {
        padding: 0.8rem 0.8rem;
      }
      
      .logo {
        font-size: 1.2rem;
      }
      
      .nav-links {
        display: none;
      }
      
      /* 隐藏顶部大幻灯片 */
      .hero-slider {
        display: none;
      }
      
      /* 显示小幻灯片在顶部 */
      .left-column {
        order: -1;
      }
      
      .layout-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        margin-top: calc(var(--navbar-height) + 10px);
        max-width: 100%;
        width: 100%;
      }
      
      .left-column,
      .middle-column,
      .right-column {
        grid-column: 1;
        width: 100%;
      }
      
      .header-container {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
      }
      
      .news-header-flex {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
      }
      
      .notice-header-flex {
        width: 100%;
      }
      
      .title-text {
        font-size: 1.2rem;
      }
      
      .more-link {
        font-size: 0.8rem;
      }
      
      .news-line-segment,
      .notice-line-segment {
        bottom: -5px;
        height: 1px;
      }
      
      .bottom-news-section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
        width: 100%;
      }
      
      .bottom-news-module {
        padding: 15px;
      }
      
      .bottom-news-module h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
      }
      
      .friend-links-section {
        flex-direction: column;
        padding: 15px;
        margin-top: 20px;
        width: 100%;
      }
      
      .friend-links-container {
        flex: 1;
        padding-right: 0;
        border-right: none;
        margin-bottom: 15px;
      }
      
      .friend-links-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
      }
      
      .friend-links-list {
        max-height: 120px;
      }
      
      .friend-link-item {
        flex: 0 0 calc(50% - 10px);
      }
      
      .friend-link-item a {
        font-size: 0.9rem;
        padding: 3px 0;
      }
      
      .qrcode-section {
        flex: 1;
        padding-left: 0;
      }
      
      .qrcode-title {
        font-size: 1rem;
        margin-bottom: 15px;
      }
      
      .qrcode-images {
        flex-direction: row;
        gap: 15px;
      }
      
      .qrcode-image {
        width: 90px;
        height: 90px;
        margin-bottom: 8px;
      }
      
      .qrcode-label {
        font-size: 0.9rem;
      }
      
      .marquee-section {
        margin-top: 20px;
        padding: 20px 0;
        width: 100%;
      }
      
      .marquee-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
      }
      
      /* 跑马灯一次只显示一张图片 */
      .marquee-content {
        justify-content: center;
      }
      
      .marquee-item {
        width: 200px;
        height: 150px;
      }
      
      .marquee-item .caption {
        font-size: 0.8rem;
        padding: 5px;
      }
      
      .news-module,
      .notice-module {
        padding: 15px;
        margin-top: 0;
        width: 100%;
      }
      
      .news-module h2,
      .notice-module h2 {
        font-size: 1rem;
        padding-bottom: 8px;
      }
      
      .news-item,
      .notice-item {
        padding: 8px 0;
        gap: 8px;
      }
      
      .news-date {
        width: 50px;
        font-size: 0.8rem;
      }
      
      .news-link,
      .notice-link {
        font-size: 0.9rem;
      }
      
      .slide-info {
        padding: 15px;
        height: 140px;
        width: 100%;
      }
      
      .slide-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
      }
      
      .slide-date {
        font-size: 0.9rem;
        margin-bottom: 8px;
      }
      
      .slide-desc {
        font-size: 0.9rem;
      }
      
      .footer {
        margin-top: 20px;
        padding: 15px 0;
        width: 100%;
      }
      
      .footer-content {
        padding: 0 15px;
      }
      
      .footer-text {
        font-size: 0.8rem;
        margin: 8px 0;
      }
      
      .footer-links {
        gap: 15px;
        margin: 10px 0;
      }
      
      .footer-link {
        font-size: 0.8rem;
      }
      
      /* 调整手机端小幻灯片高度 */
      .small-hero-slider {
        padding-bottom: 56.25vw;
        max-height: 40vh;
        width: 100%;
      }
      
      /* 移除所有固定宽度 */
      .layout-container,
      .left-column,
      .middle-column,
      .right-column,
      .news-module,
      .notice-module,
      .slide-info,
      .small-hero-slider,
      .header-container,
      .news-header-flex,
      .notice-header-flex,
      .marquee-section,
      .bottom-news-section,
      .friend-links-section,
      .footer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
      }
    }

  }
      /* 添加手机导航菜单样式 */
/* 修复移动端导航菜单样式 */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* 菜单按钮动画效果 */
.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-menu {
  display: none !important; /* 确保默认隐藏，且优先级最高 */
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--black-transparent);
  width: 280px; /* 设置合适的宽度 */
  max-width: calc(100vw - 2rem); /* 确保不超过屏幕宽度 */
  padding: 1rem;
  border-radius: 0 0 0 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 0.5rem;
}

.mobile-nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin-bottom: 0.5rem;
}

.mobile-nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.mobile-nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu.show {
  display: block !important;
}

.mobile-nav-menu .dropdown {
  position: static;
  background: transparent;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border-radius: 0;
  display: none;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.mobile-nav-menu .nav-item-has-dropdown.active > .dropdown {
  display: block;
}

/* 在小屏幕下显示移动导航按钮 */
@media screen and (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  
  .mobile-nav-toggle {
    display: flex !important;
  }
  
  .logo img {
    max-height: 40px;
  }
  
  /* 调整导航栏内容对齐 */
  .navbar {
    justify-content: space-between;
  }
}

/* 在大屏幕下确保移动菜单隐藏 */
@media screen and (min-width: 769px) {
  .mobile-nav-menu {
    display: none !important;
  }
  
  .mobile-nav-toggle {
    display: none !important;
  }
}


      
      

    /* 超小手机 */
    @media screen and (max-width: 360px) {
      .friend-link-item {
        flex: 0 0 calc(100% - 10px);
      }
      
      .marquee-item {
        width: 160px;
        height: 120px;
      }
      
      .qrcode-image {
        width: 80px;
        height: 80px;
      }
    }

 /* 修复移动端宽度问题 */
@media screen and (max-width: 768px) {
  /* 确保body宽度正确 */
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* 确保导航栏宽度正确 */
  .navbar {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  
  /* 确保布局容器宽度正确 */
  .layout-container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* 修复快速导航部分的宽度问题 */
  .wrap {
    width: 100% !important;
    max-width: 100%;
    padding: 0 10px !important;
    box-sizing: border-box;
    overflow-x: auto; /* 防止横向滚动 */
  }
  
  .notice1 {
    width: 100%;
    overflow-x: hidden;
  }
  
  .notice1 .noticeList ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: hidden;
  }
  
  .notice1 .noticeList ul li {
    min-width: 100px;
    width: calc(50% - 10px); /* 移动端改为两列布局 */
    margin-right: 10px;
    margin-bottom: 10px;
    flex: 1 1 auto;
  }
  
  /* 修复友情链接部分的宽度问题 */
  .friend-links-section {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    flex-direction: column;
  }
  
  .friend-links-container {
    width: 100%;
    padding-right: 0;
    border-right: none;
    margin-bottom: 15px;
  }
  
  .friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .friend-link-item {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 10px;
  }
  
  /* 修复底部双列新闻模块 */
  .bottom-news-section {
    width: 100%;
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  
  /* 修复跑马灯部分的宽度问题 */
  .marquee-section {
    width: 100%;
    overflow-x: hidden;
    padding: 20px 0;
  }
  
  .marquee-content {
    width: 200%; /* 修复跑马灯动画可能引起的宽度问题 */
    min-width: 200%;
  }
  
  .marquee-item {
    width: 180px;
    flex: 0 0 auto;
  }
  
  /* 修复页脚部分的宽度问题 */
  .footer {
    width: 100%;
    overflow-x: hidden;
  }
  
  .footer-content {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  /* 确保所有模块宽度正确 */
  .news-header-flex,
  .notice-header-flex {
    width: 100%;
  }
  
  /* 确保幻灯片区域宽度正确 */
  .small-hero-slider {
    width: 100%;
    max-width: 100%;
    padding-bottom: 75%;
    box-sizing: border-box;
  }
  
  /* 确保移动端导航菜单宽度正确 */
  .mobile-nav-menu {
    width: 250px;
    max-width: 90vw;
    box-sizing: border-box;
  }
  
  /* 修复可能引起横向滚动的元素 */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* 额外修复可能引起横向滚动的元素 */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  width: max-content;
  min-width: 100%;
}

/* 确保没有元素超出容器宽度 */
img, video {
  max-width: 100%;
  height: auto;
}

/* 修复可能的横向滚动问题 */
@media screen and (max-width: 768px) {
  body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* 防止任何元素导致横向滚动 */
  .layout-container,
  .marquee-section,
  .bottom-news-section,
  .friend-links-section,
  .footer {
    overflow-x: hidden;
  }
}

/* 修复移动端顶部导航宽度问题 */
@media screen and (max-width: 768px) {
  .navbar {
    width: 100vw; /* 确保导航栏占满整个屏幕宽度 */
    padding: 0.8rem 0.8rem;
    box-sizing: border-box;
    min-width: 100%;
  }
  
  /* 修复页脚宽度问题 */
  .footer {
    width: 100vw; /* 确保页脚占满整个屏幕宽度 */
    min-width: 100%;
    margin-left: 0;
  }
  
  .footer-content {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* 隐藏大幻灯片 */
  .hero-slider {
    display: none;
  }
  
  /* 隐藏livechat-girl模块 */
  .livechat-girl {
    display: none;
  }
  
  /* 确保主要内容宽度正确 */
  body {
    max-width: 100vw;
    overflow-x: hidden;
    min-width: 100%;
  }
  
  /* 确保布局容器宽度正确 */
  .layout-container {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* 确保其他模块宽度正确 */
  .wrap,
  .marquee-section,
  .bottom-news-section,
  .friend-links-section {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-width: 100%;
  }
}