/* 移动端样式 */
body {
    margin: 0;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
    text-align: center;
    font-size: 24px;
} 

h3{
    font-weight: inherit;
}
/* 移动端页面特定样式 */
.page-content {
    background-color: #f5f5f5;
    margin: 0 auto;
}

.section {
    background: #fff;
    border-radius: 0;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 0;
    padding-left: 10px;
    border-left: 4px solid #1E90FF;
}

.notice-section h2{
    padding-left: 0px;
    border-left:none;
}
.news-section h2{
    padding-left: 0px;
    border-left:none;
}




/* 焦点图轮播样式 */
.banner-swiper {
    width: 100%;
    height: 0;
    padding-bottom:50%;  /* 16:9 比例 */
    position: relative;
    overflow: hidden;
    background-color: #fff;
    margin-top: 47px;
    transform: translateY(-50px);
    z-index: 1;
    margin-bottom: -30px;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
}

.banner-swiper .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    position: relative;
    -webkit-user-drag: none;
    -webkit-overflow-scrolling: touch;
}

.banner-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: auto;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
    -webkit-user-drag: none;
}

/* 媒体查询适配不同设备 */
@media screen and (orientation: landscape) {
    /* 横屏时的样式 */
    .banner-swiper {
        padding-bottom: 56.25%;
        margin-top: 50px;
        transform: translateY(-50px);
    }
}

@media screen and (max-width: 320px) {
    /* 小屏幕设备 */
    .banner-swiper {
        padding-bottom: 56.25%;
    }

    .section h2 {
        font-size: 16px;
    }
}

@media screen and (min-width: 768px) {
    /* 平板设备 */
    .banner-swiper {
        padding-bottom: 56.25%;
        max-width: 768px;
        margin: 47px auto 0;
    }

    .page-content {
        max-width: 768px;
        margin: 0 auto;
    }

    .section h2 {
        font-size: 20px;
    }
}

/* 分页器样式 */
.banner-swiper .swiper-pagination {
    z-index: 2;
    bottom: -10px;
    padding: 10px 0;
    transform: translateY(-10px);
}

.banner-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #1E90FF;
    opacity: 0.6;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: #1E90FF;
    opacity: 1;
    width: 18px;
    border-radius: 3px;
}

/* 热点活动section样式覆盖 */
.section.activity-section {
    background: none;
    padding: 0;
    box-shadow: none;
    margin: 0 2% 5%;
}

/* 热点活动样式 */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 15px;
}

.activity-item {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}

.activity-img {
    width: 100%;
    height: 65px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.page-content .section {
    margin: 0 15px 10px; 

}
.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-title {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;

}

/* 响应式布局 */
@media screen and (max-width: 360px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .activity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 公告列表样式 */
.notice-list {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.notice-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

/* 添加圆点样式 */
.notice-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: #333;
}

.notice-list li a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-list li .notice-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 悬停效果 */
.notice-list li:hover a {
    color: #1E90FF;
}

/* 确保首页公告列表的圆点样式 */
.notice-section .notice-list .notice-item::before {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* iOS 设备样式兼容 */
@supports (-webkit-overflow-scrolling: touch) {
    /* 修复 iOS 底部安全区域问题 */
    .page-content {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* 修复 iOS 顶部状态栏问题 */
    .header {
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
    }

    /* 修复 iOS 字体渲染问题 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 修复 iOS 滚动条样式 */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* 添加滑动过渡效果 */
.banner-swiper .swiper-slide-active {
    transition: transform 0.3s ease;
}

/* 加载状态样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1E90FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    position: absolute;
    top: 55%;
    color: #666;
    font-size: 14px;
}

.news-image {
    width: 121px;
    height: 66px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 图片悬停效果 */
.news-image a:hover img {
    transform: scale(1.05);
}
 