/*跑马灯专用样式文件，包含图片新闻轮播和领导信息跑马灯效果。*/
.marquee-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 容器：去掉固定高度，让内容撑开 */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* 轨道：改为 relative，撑开父容器；item 等高排列 */
.marquee-track {
    display: flex;
    position: relative;
    left: 0;
    will-change: transform;
    padding: 10px;
    align-items: stretch;
}

/* 卡片：去掉固定高度，由内容决定高度 */
.marquee-item {
    flex: 0 0 280px;
    margin-right: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s;
    will-change: transform;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.marquee-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.marquee-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    max-height: 160px;
    flex-shrink: 0;
}

/* 标题：完整显示，不截断，高度自适应 */
.marquee-title {
    padding: 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

/* ===== 领导列表样式（保持原有固定高度和动画） ===== */
.leader-list .marquee-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    flex-shrink: 0;
}

.leader-list .marquee-track {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    padding: 10px !important;
    animation: leaderMarquee 30s linear infinite !important;
    width: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}

.leader-list .leader-item {
    flex: 0 0 120px !important;
    margin-right: 15px !important;
    border: none !important;
    padding: 10px !important;
    height: 160px !important;
    width: 120px !important;
    max-width: none !important;
    border-bottom: none !important;
    border-right: none !important;
}

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

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

.leader-list .marquee-container:hover .marquee-track {
    animation-play-state: paused !important;
}

/* ===== 响应式：只调字号 / padding，不再限制高度 ===== */
@media (max-width: 1200px) {
    .marquee-item {
        flex: 0 0 260px;
    }
}

@media (max-width: 992px) {
    .marquee-item {
        flex: 0 0 240px;
    }
    .marquee-title {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .marquee-item {
        flex: 0 0 220px;
    }
    .marquee-title {
        padding: 10px;
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .marquee-item {
        flex: 0 0 200px;
        margin-right: 15px;
    }
    .marquee-img {
        height: 140px;
        max-height: 140px;
    }
    .marquee-title {
        padding: 8px;
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .marquee-item {
        flex: 0 0 180px;
        margin-right: 12px;
    }
    .marquee-img {
        height: 120px;
        max-height: 120px;
    }
    .marquee-title {
        padding: 6px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .marquee-item {
        flex: 0 0 160px;
    }
    .marquee-img {
        height: 100px;
        max-height: 100px;
    }
}

/* ===== 领导列表响应式（保持原有） ===== */
@media (max-width: 992px) {
    .leader-list .marquee-container {
        height: 180px;
    }
    .leader-list .leader-item {
        flex: 0 0 110px !important;
        height: 150px !important;
    }
    .leader-list .leader-avatar {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .leader-list .marquee-container {
        height: 160px;
    }
    .leader-list .leader-item {
        flex: 0 0 100px !important;
        height: 140px !important;
        margin-right: 10px !important;
    }
    .leader-list .leader-avatar {
        width: 60px;
        height: 60px;
    }
    .leader-list .leader-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .leader-list .marquee-container {
        height: 140px;
    }
    .leader-list .leader-item {
        flex: 0 0 90px !important;
        height: 130px !important;
    }
    .leader-list .leader-avatar {
        width: 50px;
        height: 50px;
    }
}