* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.server-info {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.nav-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background-color: #e3f2fd;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-title {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.notices-container {
    width: 100%;
}

.notice-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-left: 5px solid #3498db;
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.notice-title {
    color: #2c3e50;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-date {
    background-color: #ecf0f1;
    color: #7f8c8d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.notice-type {
    background-color: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-通知 {
    background-color: #3498db;
}

.type-警告 {
    background-color: #e74c3c;
}

.type-节日庆祝 {
    background-color: #9b59b6;
}

.notice-content {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.copyable-text {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #2ecc71;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyable-text:hover {
    background-color: #e8f6f3;
}

.copy-icon {
    color: #7f8c8d;
    font-size: 1.2rem;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
}

.notice-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.loading i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #d5dbdb;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.no-notices {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
.copyable-text {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #2ecc71;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyable-text:hover {
    background-color: #e8f6f3;
}

.copyable-text + .copyable-text {
    margin-top: 10px;
}

.copyable-text .copy-icon {
    color: #7f8c8d;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 15px;
}
/* 置顶公告样式 */
.top-notice {
    border: 2px solid #f39c12 !important;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.2) !important;
    position: relative;
}

.top-notice::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
    border-radius: 12px 12px 0 0;
}

.top-badge {
    background-color: #f39c12;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.top-badge i {
    font-size: 0.7rem;
}

/* 置顶公告的筛选按钮样式 */
.filter-container {
    position: relative;
}

.has-top-notice::after {
    content: '有置顶公告';
    position: absolute;
    top: -8px;
    right: 10px;
    background-color: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .top-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .top-notice {
        border-width: 1px !important;
    }
}