/* 主内容区 */
.module {
    margin-bottom: 30px;
}

.module-title {
    font-size: 24px;
    color: #2E7D32;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.module-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-top: 5px;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}
/* 领导关怀 */
.slick{
    background: rgba(46, 125, 50, 0.8);
    background-position: center center;
    position: absolute;
    top: 50%;
    width: 65px;
    height: 65px;
    line-height: 65px;
    z-index: 999;
    border-radius: 50%;
    cursor: pointer;
    outline: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    transition: all 0.3s ease;
}
.slick:hover{
    background: rgba(46, 125, 50, 1);
    transform: scale(1.1);
}
.slick-left{
    left: -70px;
}
.slick-left::before {
    content: '‹';
    margin-top:-10px;
}
.slick-right{
    right: -70px;
}
.slick-right::before {
    content: '›';
    margin-top:-10px;
}
.box{
    display: flex;
    justify-content: space-between;
}
/* 培训视频模块 */
.video-module{
    width: 68%;
}
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.video-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watermark {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(46, 125, 50, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.video-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 15px 10px;
    color: #333;
}

.video-desc {
    font-size: 14px;
    color: #666;
    margin: 0 15px 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.video-date {
    font-size: 12px;
    color: #999;
    margin: 0 15px 15px;
}

/* 资料目录模块 */
.resources-module{
    width: 30%;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: 200px;
}

.resource-btn {
    background: #F5F5F5;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 60px;
    text-align: center;
}

.resource-btn:hover {
    background: #E0E0E0;
    transform: translateY(-2px);
}

/* 分会文化模块 */
.culture-module{
    text-align: center;
}
/* 招商加盟模块 */
.zhaoshang{
    background: url(../image/cw.jpg);
}
.join-module{
    padding-top: 50px;
    width: 1200px;
    margin: auto;
}
.join-buttons {
    display: flex;
    gap: 1%;
    height: 120px;
}

.join-btn {
    flex: 1;
    background: #1B5E20;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    height: 80px;
    max-width: 32%;
}

.join-btn:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    transform: translateY(-2px);
}

/* 创卫专栏模块 */
.health-module{
    width: 60%;
}

/* 时政信息模块 */
.news-module{
    width: 38%;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #2E7D32;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-left-color: #1B5E20;
}

.news-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #2E7D32;
}

.news-content {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 企业管理咨询模块 */
.consult-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1%;
    height: 200px;
}

.consult-card {
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.consult-card:hover {
    transform: translateY(-2px);
    cursor: pointer;
}

.consult-icon {
    width: 100%;
    height: 100%;
}


/* 性能优化样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 图片占位符样式 */
.img-placeholder {
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-family: 'Microsoft YaHei', sans-serif;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 懒加载图片占位符 */
img.lazy {
    opacity: 0;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    transition: opacity 0.6s ease;
}

img.lazy.lazy-loaded {
    opacity: 1;
    background: none;
}

/* 立即加载图片的占位符 */
img:not([src]),
img[src=""],
img[src*="data:image"]:not([src*="base64"]),
img:not([src]):not([srcset]) {
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* 轮播图占位符 */
.banner .swiper-slide img {
    min-height: 400px;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.banner .swiper-slide img[src] {
    background: none;
}

/* 领导关怀模块图片占位符 */
.lingdao-module .swiper-slide img {
    min-height: 200px;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.lingdao-module .swiper-slide img[src] {
    background: none;
}

/* 视频封面图占位符 */
.video-cover img {
    min-height: 200px;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.video-cover img[src] {
    background: none;
}

/* 企业管理咨询图标占位符 */
.consult-icon {
    min-height: 100px;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
                      linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.consult-icon[src] {
    background: none;
}

/* 减少重绘重排的优化 */
.header {
    will-change: transform;
}

.banner-slider .slide {
    will-change: opacity;
}

/* 所有模块进场动画样式 */
.animated-section {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.animated-section.animated-in {
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 45px;
}

/* 延迟加载模块样式 */
.lazy-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lazy-section.lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 关键模块延迟动画 - 确保用户体验连续性 */
.banner {
    opacity: 1 !important;
    transform: none !important;
}

/* 懒加载图片样式 */
img.lazy {
    opacity: 0;
    transition: opacity 0.6s ease;
}

img.lazy.lazy-loaded {
    opacity: 1;
}

/* 加载指示器 */
.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
}

.loading-indicator.active {
    display: block;
}
.xg_flink_item{
     display: inline-block;
    cursor: pointer;
    padding: 5px 20px;
    max-width: 240px;
    height: auto;
    overflow: hidden;
    font-size: 12px;
    color: #333;
    text-align: center;
    width: 168px;
    left: -2px;
}
