﻿/* start 公告*/

/* 通用样式 */
.color-badge {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

/* 公告中心样式 */
.announcement-banner {
    background: linear-gradient(135deg, #6190e8, #a7bfe8);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(97, 144, 232, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
}

.banner-text {
    flex: 1;
    overflow: hidden;
}

.banner-swiper {
    animation: scrollBanner 20s linear infinite;
}

.banner-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s;
}

    .banner-item:hover {
        opacity: 0.8;
    }

.banner-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.banner-title {
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes scrollBanner {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(-200%);
    }

    75% {
        transform: translateY(-300%);
    }

    100% {
        transform: translateY(0);
    }
}

/* 分类筛选 */
.category-filter {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
    color: #6c757d;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
}

    .filter-btn:hover {
        border-color: #6190e8;
        color: #6190e8;
    }

    .filter-btn.active {
        border-color: #6190e8;
        background: #6190e8;
        color: white;
    }

/* 公告卡片 */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

    .announcement-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

.top-badge {
    background: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.publish-time {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.875rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.card-summary {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.author, .view-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* 公告详情页 */
.announcement-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.title-section {
    margin-bottom: 1rem;
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.75rem;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 1rem 0 0 0;
    line-height: 1.3;
}

.meta-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.meta-divider {
    color: #dee2e6;
}

.detail-content {
    line-height: 1.8;
}

.content-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}

.attachments-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.attachments-title {
    color: #333;
    margin-bottom: 1rem;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s;
}

    .attachment-item:hover {
        background: #e9ecef;
    }

.attachment-name {
    flex: 1;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .meta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .meta-divider {
        display: none;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* eng 公告*/
