/* 公告页面样式 - 重新设计 */

/* 公告页面主容器 */
.announcement-page {
    padding-top: 6rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 8rem);
    overflow-x: hidden;
    background: #f8fafc;
}

/* 公告容器 */
.announcement-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* 页面头部 */
.announcement-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 3rem 0;
    color: #374151;
}

.announcement-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

.announcement-header p {
    font-size: 1.2rem;
    margin: 0;
    color: #6b7280;
}

/* 公告列表 */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 公告项 */
.announcement-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.announcement-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1565C0;
}

/* 置顶公告 */
.announcement-item.featured {
    background: white;
    position: relative;
}

/* 公告徽章 */
.announcement-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #1565C0, #1976d2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* 公告内容 */
.announcement-content {
    padding: 2.5rem;
    position: relative;
}

/* 公告标题 */
.announcement-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.announcement-item.featured .announcement-title {
    color: #1f2937;
}

/* 公告元信息 */
.announcement-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.announcement-date::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #64748b;
    border-radius: 50%;
    display: block;
}

.announcement-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1565C0;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(21, 101, 192, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(21, 101, 192, 0.2);
}

.announcement-type::before {
    content: '';
    width: 12px;
    height: 12px;
    background: #1565C0;
    border-radius: 2px;
    display: block;
}

/* 公告正文 */
.announcement-text {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.announcement-text p {
    margin-bottom: 1.2rem;
}

.announcement-text p:last-child {
    margin-bottom: 0;
}

.announcement-text ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #1565C0;
}

.announcement-text li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    color: #334155;
}

.announcement-text li:last-child {
    border-bottom: none;
}

.announcement-text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #1565C0;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
}

/* 不同类型的公告样式 */
.announcement-item:nth-child(2) .announcement-text li::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.announcement-item:nth-child(3) .announcement-text li::before {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.announcement-item:nth-child(4) .announcement-text li::before {
    background: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-page {
        padding-top: 5rem;
        padding-bottom: 1.5rem;
    }
    
    .announcement-page .container {
        padding: 0 1rem;
    }
    
    .announcement-header {
        margin: 1.5rem 0 2rem 0;
        padding: 2rem 1rem;
    }
    
    .announcement-header h1 {
        font-size: 2.2rem;
    }
    
    .announcement-header p {
        font-size: 1rem;
    }
    
    .announcements-list {
        gap: 1.5rem;
    }
    
    .announcement-content {
        padding: 2rem;
    }
    
    .announcement-title {
        font-size: 1.4rem;
    }
    
    .announcement-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .announcement-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .announcement-text {
        font-size: 0.95rem;
    }
    
    .announcement-text ul {
        padding: 1rem;
    }
    
    .announcement-text li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .announcement-header h1 {
        font-size: 1.8rem;
    }
    
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.3rem;
    }
    
    .announcement-text {
        font-size: 0.9rem;
    }
    
    .announcement-text li {
        padding-left: 1.2rem;
    }
}

/* 入场动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-item {
    animation: slideInUp 0.6s ease-out;
}

.announcement-item:nth-child(1) { animation-delay: 0.1s; }
.announcement-item:nth-child(2) { animation-delay: 0.2s; }
.announcement-item:nth-child(3) { animation-delay: 0.3s; }
.announcement-item:nth-child(4) { animation-delay: 0.4s; }

/* 头部动画 */
.announcement-header {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 悬停效果增强 */
.announcement-item:hover .announcement-title {
    color: #1565C0;
    transition: color 0.3s ease;
}

.announcement-item:hover .announcement-badge {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
