/* 卡速网公告页面优化样式 */
/* 现代设计风格，更符合企业级平台 */

/* 主内容区 */
.main {
    padding: 30px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题和筛选 */
.notice-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #1890FF;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    font-size: 40px;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-filter {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(24, 144, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tab:hover {
    background: #e9f5ff;
    color: #1890FF;
    transform: translateY(-2px);
}

.filter-tab.active {
    background: #1890FF;
    color: white;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.search-notice {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.search-notice input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-notice input:focus {
    outline: none;
    border-color: #1890FF;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.search-notice .btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 公告列表 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.notice-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #1890FF;
    transition: width 0.4s ease;
}

.notice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(24, 144, 255, 0.12);
    border-color: #c8e1ff;
}

.notice-card:hover::before {
    width: 10px;
}

.notice-card.important::before {
    background: #ff4d4f;
}

.notice-card.activity::before {
    background: #52c41a;
}

.notice-card.system::before {
    background: #722ed1;
}

.notice-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.badge {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.important-badge {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

.activity-badge {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.system-badge {
    background: #f9f0ff;
    color: #722ed1;
    border: 1px solid #d3adf7;
}

.normal-badge {
    background: #f0f5ff;
    color: #1890FF;
    border: 1px solid #adc6ff;
}

.notice-date {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

.notice-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.4;
}

.notice-content {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.notice-content p, .notice-content ul, .notice-content ol {
    margin-bottom: 15px;
}

.notice-content strong {
    color: #1890FF;
    font-weight: 600;
}

.notice-content ul, .notice-content ol {
    padding-left: 24px;
}

.notice-content li {
    margin-bottom: 8px;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
    color: #888;
    font-size: 14px;
}

.notice-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    color: #1890FF;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f5ff;
}

.read-more:hover {
    background: #1890FF;
    color: white;
    transform: translateX(5px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: white;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    gap: 8px;
}

.page-item:hover:not(.disabled):not(.active) {
    background: #f8f9fa;
    border-color: #1890FF;
    color: #1890FF;
    transform: translateY(-2px);
}

.page-item.active {
    background: #1890FF;
    color: white;
    border-color: #1890FF;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 80px;
    color: #d9d9d9;
    margin-bottom: 25px;
}

.empty-state h3 {
    font-size: 28px;
    color: #888;
    margin-bottom: 15px;
}

.empty-state p {
    color: #aaa;
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .notice-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-notice {
        max-width: 100%;
    }
    
    .notice-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 20px 0 40px;
    }
    
    .notice-card {
        padding: 25px;
    }
    
    .notice-title {
        font-size: 22px;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-item {
        min-width: 42px;
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 26px;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title i {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .notice-card {
        padding: 20px;
    }
    
    .notice-title {
        font-size: 20px;
    }
}