/* 标准公告专用样式 - notice.css */

/* 公告横幅 */
.notice-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '📢';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 150px;
    opacity: 0.1;
}

.notice-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.notice-banner p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* 筛选区域 */
.notice-filter {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #f5576c;
    box-shadow: 0 0 5px rgba(245, 87, 108, 0.2);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* 公告类型标签 */
.notice-type-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.notice-type-tab {
    padding: 10px 25px;
    background-color: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.notice-type-tab:hover {
    background-color: #f5576c;
    color: #fff;
    border-color: #f5576c;
}

.notice-type-tab.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-color: transparent;
    font-weight: bold;
}

/* 公告列表 */
.notice-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.notice-item {
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.notice-item:hover {
    background-color: #fafafa;
    padding-left: 20px;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.notice-type-badge {
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-type-badge.new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.notice-type-badge.important {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

.notice-type-badge.general {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.notice-type-badge.obsolete {
    background-color: #ffebee;
    color: #c62828;
}

.notice-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    flex: 1;
    line-height: 1.6;
}

.notice-title:hover {
    color: #f5576c;
}

.notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 0;
}

.notice-meta {
    display: flex;
    gap: 30px;
    font-size: 13px;
    color: #999;
    padding-left: 0;
}

.notice-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 公告详情 */
.notice-detail {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    display: none;
}

.notice-detail.active {
    display: block;
    animation: fadeIn 0.5s;
}

.notice-detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.notice-detail-type {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.notice-detail-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.notice-detail-meta {
    display: flex;
    gap: 30px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.notice-detail-content {
    line-height: 2;
    color: #666;
    font-size: 16px;
}

.notice-detail-content h2 {
    font-size: 24px;
    color: #333;
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5576c;
}

.notice-detail-content h3 {
    font-size: 20px;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.notice-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.notice-detail-content ul,
.notice-detail-content ol {
    margin-bottom: 20px;
    padding-left: 40px;
}

.notice-detail-content li {
    margin-bottom: 10px;
}

.notice-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.notice-detail-content table th,
.notice-detail-content table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.notice-detail-content table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.notice-detail-content .highlight {
    background-color: #fff3e0;
    padding: 20px;
    border-left: 4px solid #f5576c;
    margin: 25px 0;
    border-radius: 4px;
}

/* 附件下载 */
.notice-attachments {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.notice-attachments h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s;
}

.attachment-item:hover {
    background-color: #f0f0f0;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.attachment-icon {
    font-size: 32px;
}

.attachment-name {
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.attachment-size {
    font-size: 13px;
    color: #999;
}

.attachment-download {
    padding: 8px 20px;
    background-color: #f5576c;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.attachment-download:hover {
    background-color: #e04458;
    transform: translateY(-2px);
}

/* 操作按钮 */
.notice-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-back-btn {
    padding: 10px 30px;
    background-color: #999;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.notice-back-btn:hover {
    background-color: #777;
}

/* 统计卡片 */
.notice-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.notice-stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.notice-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.notice-stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notice-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #f5576c;
    margin-bottom: 8px;
}

.notice-stat-label {
    font-size: 14px;
    color: #666;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #f093fb 0%, #f5576c 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #f5576c;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #f5576c;
}

.timeline-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.timeline-content {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.timeline-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background-color: #f5576c;
    color: #fff;
    border-color: #f5576c;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #f5576c;
    color: #fff;
    border-color: #f5576c;
}

/* 响应式 */
@media (max-width: 768px) {
    .notice-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions button {
        flex: 1;
    }

    .notice-type-tabs {
        gap: 10px;
    }

    .notice-type-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .notice-banner h1 {
        font-size: 28px;
    }

    .notice-detail-title {
        font-size: 24px;
    }

    .notice-detail-content {
        font-size: 15px;
    }

    .notice-actions {
        flex-direction: column;
        gap: 15px;
    }

    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .notice-stats {
        grid-template-columns: 1fr;
    }

    .notice-meta {
        flex-direction: column;
        gap: 10px;
    }

    .notice-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
}