.notice-container {
    padding: 2rem 0;
    max-width: 900px;
    margin: 100px auto;
}

.notice-list {
    margin-top: 2rem;
    display: none; /* 初始隐藏，等待加载完成 */
}

.notice-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem;
    margin-bottom: 1.5rem;
    border: #e8f5e9 1px solid;
    position: relative;
    overflow: hidden;
}



.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.notice-title {
    font-size: 1.3rem;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.notice-date {
    color: #888;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.notice-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notice-tag {
    background-color: #e8f5e9;
    color: #4CAF50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}



/* 通知项状态样式 */
.notice-item.active-competition {
    border-left: 4px solid #4caf50;
}

.notice-item.inactive {
    border-left: 4px solid #9e9e9e;
}

.notice-deadline {
    color: #e53e3e;
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 8px;
}

.notice-more {
    color: #4CAF50;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.notice-more:hover {
    color: #388E3C;
}

.notice-more .material-icons {
    font-size: 1rem;
    margin-left: 0.3rem;
}

.page-title {
    text-align: center;
    margin: 9rem 0 2rem;
    color: #333;
}

/* 加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 分页控件样式 */
.pagination-container {
    display: none; /* 初始隐藏 */
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #388E3C, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-btn .material-icons {
    font-size: 1.2rem;
}

.pagination-info {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* 错误状态样式 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    color: #f44336;
}

.error-container .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #388E3C;
}

/* 无通知状态 */
.no-notices {
    text-align: center;
    padding: 3rem 0;
    color: #999;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notice-container {
        margin: 80px auto;
        padding: 1rem;
    }
    
    .notice-item {
        margin: 1rem 0;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notice-date {
        margin-left: 0;
    }
    
    .notice-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}