@charset "utf-8";

/* 公告列表页面样式 */

/* 容器布局 */
.announcement-container {
    display: flex;
    width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    min-height: 600px;
}

/* 左侧导航栏 */
.announcement-sidebar {
    width: 200px;
    margin-right: 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #f8f8f8;
    color: #00abe1;
}

.category-item.active {
    background-color: #00abe1;
    color: #fff;
    font-weight: bold;
}

.category-item:last-child {
    border-bottom: none;
}

/* 右侧内容区域 */
.announcement-content {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

/* 头部区域 */
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00abe1;
}

.announcement-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
}

.search-input {
    width: 250px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-right: none;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #00abe1;
}

.search-btn {
    width: 40px;
    height: 34px;
    border: 1px solid #ddd;
    border-left: none;
    background-color: #00abe1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.search-btn:hover {
    background-color: #0099cc;
}

.search-icon {
    font-size: 16px;
}

/* 筛选条件区域 */
.filter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.filter-select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:focus {
    border-color: #00abe1;
}

/* 表格区域 */
.announcement-table-wrapper {
    margin-bottom: 20px;
    overflow-x: auto;
}

.announcement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.announcement-table thead {
    background-color: #f9f9f9;
}

.announcement-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}

.announcement-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.announcement-table tbody tr:hover {
    background-color: #f9f9f9;
}

.announcement-table tbody tr:last-child td {
    border-bottom: none;
}

.project-name a {
    color: #00abe1;
    text-decoration: none;
}

.project-name a:hover {
    text-decoration: underline;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
}

.status-active {
    background-color: #e8f5e9;
    color: #4caf50;
}

.status-ended {
    background-color: #ffebee;
    color: #f44336;
}

/* 分页 */
.binder-pager {
    margin-top: 20px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f0f0f0;
    border-color: #00abe1;
    color: #00abe1;
}

.pagination a.active {
    background-color: #00abe1;
    color: #fff;
    border-color: #00abe1;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .announcement-container {
        width: 100%;
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .announcement-container {
        flex-direction: column;
    }
    
    .announcement-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
    }
    
    .filter-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .announcement-table {
        font-size: 12px;
    }
    
    .announcement-table th,
    .announcement-table td {
        padding: 8px 10px;
    }
}

