/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* 容器样式，确保页面居中 */
.container {
    width: 1226px;
    margin: 0 auto;
}

/* 导航按钮样式，确保居中分布 */
.nav-btns {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btns .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 234px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-btns .menu:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-btns .menu span {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* 通知公告样式 */
.bread-curumb {
    padding: 20px 0;
    background-color: #f5fdfe;
    margin-bottom: 20px;
}

.notice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.notice-list {
    display: flex;
    align-items: center;
    flex: 1;
}

.notice-icon {
    display: flex;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-icon span {
    font-size: 14px;
    color: #333;
    margin-right: 5px;
}

.notice-icon img {
    width: 16px;
    height: 16px;
}

.scroll-box {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 29px;
    line-height: 29px;
    width: 90%;
    scrollbar-width: none;
    white-space: nowrap;
    margin: 0;
    list-style: disc;
    color: #169BD5;
    animation: scroll 60s linear infinite;
}

.scroll-box::-webkit-scrollbar {
    display: none;
}

.scroll-box:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}



.scroll-box li {
    height: 20px;
    line-height: 20px;
    white-space: nowrap;
    padding-right: 30px;
    margin: 0;
    position: relative;
    list-style: disc;
    color: #169BD5;
    flex-shrink: 0;
}

.scroll-box li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
}

.scroll-box li a:hover {
    color: #169BD5;
}

.more {
    font-size: 14px;
    width: 60px;
    padding: 5px 0;
    position: absolute;
    right: 0;
    text-align: center;
    background: #f5fdfe;
}

.more a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.more a:hover {
    color: #169BD5;
}

/* 默认PC端布局 - 左右布局 */
.lunbo-warp {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.lunbo {
    width: 50%;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.lunbo .content {
    position: relative;
    width: 100%;
    height: 100%;
}

.lunbo .content #item {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lunbo .content #item li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: 0;
    padding: 0;
}

.lunbo .content #item li.active {
    opacity: 1;
}

.lunbo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

/* 轮播图箭头样式 */
#btn-left,
#btn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

#btn-left:hover,
#btn-right:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#btn-left {
    left: 20px;
}

#btn-right {
    right: 20px;
}

/* 轮播图指示器样式 */
#circle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#circle li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
}

#circle li:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#circle li.white {
    background-color: #fff;
}

.right-news {
    width: 50%;
    margin-left: 0;
}

/* 学会新闻文章样式 */
.right-news #newsList {
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.right-news #newsList li {
    list-style: disc;
    color: #169BD5;
    margin: 20px 0 20px 20px;
    padding: 0;
    font-size: 14px;
}

.right-news #newsList li p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.right-news #newsList li p a {
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-news #newsList li p a:hover {
    color: #169BD5;
}

.right-news #newsList li p span {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 学会新闻标题样式 */
.right-news .introduction-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-left: 3px solid #1552e2;
    background-image: linear-gradient(to right, #bed4e9, white);
}

.right-news .introduction-title .left span {
    font-size: 16px;
    font-weight: bold;
    color: #169BD5;
}

.right-news .introduction-title .right a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.right-news .introduction-title .right a:hover {
    color: #169BD5;
}

/* 默认显示PC端内容，隐藏手机端内容 */
.pc {
    display: block;
}

.phone {
    display: none;
}

/* 确保手机端轮播图正常显示 */
.swiper-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 260px;
}

.swiper-wrap ul {
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.swiper-wrap ul::-webkit-scrollbar {
    display: none;
}

.swiper-wrap ul li {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    margin: 0;
    padding: 0;
}

.swiper-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-wrap ol {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.swiper-wrap ol li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
    padding: 0;
}

.swiper-wrap ol li:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.swiper-wrap ol li.white {
    background-color: #fff;
}

.center-wrap {
    width: 100%;
    background-color: #f9f9f9;
    padding-bottom: 20px;
}

.columns-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 10px;
    margin-top: 15px;
}

.columns-wrap .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
    margin-bottom: 15px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #9ed0f2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.columns-wrap .menu:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.columns-wrap .menu img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
}

.columns-wrap .menu span {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* 手机端新闻列表样式 */
.news-wrap {
    padding: 15px;
    background-color: #fff;
}

.news-wrap .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0 10px 10px;
    border-left: 3px solid #1552e2;
    background-image: linear-gradient(to right, #bed4e9, white);
}

.news-wrap .title span {
    font-size: 16px;
    font-weight: bold;
    color: #169BD5;
}

.news-wrap .title a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-wrap .title a:hover {
    color: #169BD5;
}

.news-wrap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-wrap ul li {
    margin: 12px 0;
    padding: 0;
}

.news-wrap ul li p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.news-wrap ul li p a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-wrap ul li p a:hover {
    color: #169BD5;
}

.news-wrap ul li p span {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 手机端底部盒子样式 */
.bottom-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: url(../images/denglu_bg.png) no-repeat center bottom;
}

/* 底部标题样式 */
.bottom-box .bottom-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 二维码样式 */
.bottom-box .QRcode {
    margin: 0 10px 20px;
    text-align: center;
}

.bottom-box .QRcode img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.bottom-box .QRcode div {
    font-size: 12px;
    color: #666;
    text-align: center;
}
.go-top {
    width: 80px;
    height: 80px;
    position: fixed;
    bottom: 240px;
    right: 230px;
    display: none;
    cursor: pointer;
  }
  .go-top img {
    width: 100%;
    height: 100%;
  }

/* 弹窗样式 */
.popup-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* 弹窗背景 */
.popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* 弹窗内容 */
.popup-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* 弹窗图片 */
.popup-content img {
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
}

/* 弹窗文字 */
.popup-content div {
    font-size: 16px;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
}



/* 响应式调整 */
@media screen and (max-width: 1266px) {
    .container {
        width: 95%;
        max-width: 1226px;
    }
    
    .bread-curumb {
        padding: 20px 0;
        margin-bottom: 20px !important;
    }
    
    .nav-btns .menu {
        width: 22%;
        min-width: 200px;
    }
}

/* 移动端 */
@media screen and (max-width: 950px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .nav-btns .menu {
        width: 45%;
        min-width: 150px;
        margin-bottom: 15px;
    }
    
    .bread-curumb {
        padding: 10px;
        margin-bottom: 0 !important;
    }
    
    /* 隐藏PC端内容，显示手机端内容 */
    .pc {
        display: none;
    }
    
    .phone {
        display: block;
    }
    
    /* 确保内容不足时也能正常显示 */
    .scroll-box {
        width: 100%;
        animation-duration: 60s;
    }
}
