/* 公告中心页面样式 */

.notice-container {
    padding: 6rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.notice-wrapper {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.notice-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.notice-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.notice-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    min-height: 500px;
}

/* 侧边栏 */
.notice-sidebar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.category-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.category-item {
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.category-link:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.category-link i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.category-item.active .category-link {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

/* 主内容区 */
.notice-main {
    flex: 1;
    padding: 2rem;
}

.category-section {
    display: none;
}

.category-section.active {
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

/* 公告列表 */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-item {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.announcement-header {
    margin-bottom: 1rem;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.announcement-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.announcement-date {
    color: #64748b;
}

.announcement-type {
    background: #dbeafe;
    color: #2563eb;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.announcement-content {
    margin-bottom: 1.5rem;
}

.announcement-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-views {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notice-container {
        padding: 6rem 1rem 3rem;
    }

    .notice-header {
        padding: 2rem 1rem;
    }

    .notice-title {
        font-size: 1.75rem;
    }

    .content-container {
        flex-direction: column;
    }

    .notice-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .category-list {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }

    .category-item {
        flex-shrink: 0;
    }

    .category-link {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .notice-main {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .announcement-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .announcement-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .notice-title {
        font-size: 1.5rem;
    }

    .notice-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .announcement-title {
        font-size: 1.125rem;
    }
}