/* 公告轮播区域样式 */
.announcements-section {
    margin: 16px 16px 0;
    position: relative;
}

.announcements-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.announcements-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.announcement-slide {
    min-width: 100%;
    cursor: pointer;
    position: relative;
}

.announcement-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.announcement-slide-content {
    padding: 16px;
}

.announcement-slide-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-slide-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播指示器 */
.announcements-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.announcement-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.announcement-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

/* 左右切换按钮 */
.announcements-prev,
.announcements-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.announcements-prev:hover,
.announcements-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.announcements-prev {
    left: 12px;
}

.announcements-next {
    right: 12px;
}

/* 公告详情弹窗动画 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 公告图片轮播（详情页内） */
.announcement-images-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
}

.announcement-images-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.announcement-image-slide {
    min-width: 100%;
    cursor: pointer;
}

.announcement-image-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.announcement-image-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.announcement-image-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.announcement-image-indicator.active {
    width: 20px;
    border-radius: 3px;
    background: #fff;
}

/* 公告按钮样式 */
.announcement-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.announcement-button.primary {
    background: linear-gradient(135deg, #c61f0d 0%, #a51808 100%);
}

.announcement-button.secondary {
    background: linear-gradient(135deg, #666 0%, #444 100%);
}

.announcement-button.success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.announcement-button.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.announcement-button.danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.announcement-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .announcements-section {
        margin: 12px 12px 0;
    }
    
    .announcements-prev,
    .announcements-next {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .announcements-prev {
        left: 8px;
    }
    
    .announcements-next {
        right: 8px;
    }
}
