/* 底部样式 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.copyright-info {
    font-weight: 500;
}

.icp-info {
    margin: 5px 0;
}

.icp-info a {
    color: #6c757d;
    text-decoration: none;
}

.icp-info a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-extra {
    line-height: 1.5;
}

.footer-extra p {
    margin: 5px 0;
}

/* 公告栏样式 */
.announcement-bar {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
    /* 移除固定定位，改为相对定位 */
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    /* 移除最大高度限制，允许正常显示 */
    max-height: none;
    /* 移除阴影效果，使其融入页面 */
    box-shadow: none;
}

/* 恢复导航栏原始位置 */
.header {
    top: 0 !important;
}

/* 恢复移动端导航菜单原始位置 */
@media (max-width: 768px) {
    .nav ul.active {
        top: 60px !important;
    }
}

/* 恢复页面内容原始边距 */
.main {
    margin-top: 0;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-more {
    margin-left: auto;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.announcement-more:hover {
    text-decoration: underline;
}

/* 公告列表页面样式 */
.announcements-page {
    max-width: 800px;
    margin: 0 auto;
}

.announcements-page h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcements-list .announcement-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.announcements-list .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.announcements-list .announcement-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.announcements-list .announcement-date {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
}

.announcements-list .announcement-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.announcements-list .announcement-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.announcements-list .tag-top {
    background-color: #ffebee;
    color: #c62828;
}

.announcements-list .tag-popup {
    background-color: #e3f2fd;
    color: #1565c0;
}

.announcements-list .tag-active {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.announcements-list .tag-inactive {
    background-color: #f5f5f5;
    color: #616161;
}

.announcements-list .announcement-content {
    line-height: 1.6;
    color: #333;
}

.announcements-list .announcement-content p {
    margin: 10px 0;
}

.announcements-list .announcement-content h4 {
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.announcements-list .announcement-content ul,
.announcements-list .announcement-content ol {
    margin: 10px 0;
    padding-left: 25px;
}

.announcements-list .announcement-content li {
    margin: 5px 0;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #6c757d;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}