/* 移动端公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 常用字体设置 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    padding-top: 50px;
}

/* 清除列表样式 */
ul, ol {
    list-style: none;
}

/* 清除链接下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* 图片最大宽度100% */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 导航容器 */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* 头部样式 */
.mobile-header {
    position: relative;
    height: 50px;
    /* background: #1E90FF; */
    background:#2181d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* 菜单按钮样式 */
.menu-toggle {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-line {
    display: block;
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #fff;
    left: 5px;
    transition: all 0.3s ease;
}

.line-top {
    top: 8px;
}

.line-middle {
    top: 14px;
}

.line-bottom {
    top: 20px;
}

/* 菜单打开时的样式 */
.menu-toggle.menu-open .line-top {
    top: 14px;
    transform: rotate(45deg);
}

.menu-toggle.menu-open .line-middle {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.menu-open .line-bottom {
    top: 14px;
    transform: rotate(-45deg);
}

/* 侧边导航样式 */
.side-nav {
    position: fixed;
    top: 50px;
    right: 100%;
    width: 80%;
    height: calc(100vh - 50px);
    background: #fff;
    transition: transform 0.3s ease-out;
    z-index: 999999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    transform: translateX(0);
}

.side-nav.active {
    transform: translateX(100%);
}

/* 导航列表样式 */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    border-bottom: 1px solid #eee;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    z-index: 999999;
}

.nav-list li a:hover {
    background: #f5f5f5;
}

/* 导航图标样式 */
.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 各个导航项的图标 */
.home-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E90FF' d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.notice-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E90FF' d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z'/%3E%3C/svg%3E");
}

.news-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E90FF' d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.gallery-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E90FF' d='M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z'/%3E%3C/svg%3E");
}

.video-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231E90FF' d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E");
}

/* 遮罩层 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 页面内容区域样式 */
.page-content {
    padding: 0; /* 移除所有内边距 */
}

.page-content .section {
    /* margin: 0 15px 10px;  */
    background: #fff;
    padding: 15px;
}

/* 内容区域通用样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    border-left: none;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.section-header h2 a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.section-header h2 a:hover {
    color: #1E90FF;
}

.more-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.more-link:hover {
    color: #1E90FF;
}

/* 公告列表样式 */
.notice-list {
    padding: 0;
    margin-top: 15px;
}

.notice-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 0;
}

.notice-content {
    position: relative;
    padding-left: 12px;  /* 为圆点留出空间 */
}

.notice-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;  /* 调整圆点垂直位置 */
    width: 4px;
    height: 4px;
    background-color: #333;
    border-radius: 50%;
}

.notice-content a {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.notice-time {
    color: #999;
    font-size: 12px;
}

/* 新闻列表样式 */
.news-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.news-content {
    flex: 1;
    margin-right: 15px;
}

.news-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    color: #999;
    font-size: 13px;
}

.news-image {
    width: 120px;
    height: 66px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图集网格样式 */
.gallery-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  
}

.gallery-item, .video-item {
    margin-bottom: 15px;
    padding: 0 3.5px;
}

.gallery-image, .video-image {
    position: relative;
    padding-top: 61.5%; /* 4:3 比例 */
    overflow: hidden;
    border-radius: 4px;
}

.gallery-image img, .video-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-title, .video-title {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.3;
}

/* 视频播放图标 */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.play-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* 新闻列表样式 */
.news-list {
    margin-bottom: 0px; /* 为底部更多按钮留出空间 */
    margin-top: 5px;
}

/* 底部更多按钮样式 */
.news-more {
    text-align: center;
    padding-top: 15px;
   
}

.more-btn {
    display: inline-block;
    padding: 8px 30px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background: #e5e5e5;
    color: #333;
}

.notice-section .notice-icon,
.news-section .news-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    background: none;
    display: inline-block;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 10px;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-item,
.pagination .page-next,
.pagination .page-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background: #fff;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-prev,
.pagination .page-next {
    padding: 0 8px;
}

.pagination .page-item.active {
    background: #1E90FF;
    color: #fff;
    border-color: #1E90FF;
}

.pagination .page-item:hover,
.pagination .page-next:hover,
.pagination .page-prev:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.pagination .page-item.active:hover {
    background: #1E90FF;
    border-color: #1E90FF;
}

/* 禁用状态 */
.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 针对新闻和公告列表的特定样式 */
.news-section .section-header,
.notice-section .section-header {
    margin-bottom: 0;
}

/* 文章详情页样式 */
.detail-section {
    padding: 15px;
    padding-top: 50px;  /* 为返回按钮留出空间 */
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 20px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: bold;
}

.article-info {
    color: #999;
    font-size: 12px;
}

.article-time {
    margin-right: 15px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* 添加全局列表样式重置 */
ul, li {
    list-style: none !important;
    -webkit-padding-start: 0;
    padding-inline-start: 0;
    margin: 0;
    padding: 0;
}

/* 返回按钮样式 */
.back-btn {
    position: fixed;
    top: 75px;
    left: 5px;
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-btn::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    margin-left: 4px;
}

/* 悬浮效果 */
.back-btn:hover {
    opacity: 0.7;
}

/* 点击效果 */
.back-btn:active {
    transform: scale(0.95);
}