/* 移除表单容器的padding */
.graphs {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* 公告容器样式 */
.notice-container {
    margin: 0 auto;
    width: 35%;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin-top: 20px;
}

/* 当没有公告时隐藏容器 */
.notice-container.no-notices {
    display: none;
}

.notice-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* 公告标题样式 */
.notice-header {
    border-bottom: 2px solid #37b04f;
    padding-bottom: 10px;
    margin-bottom: 15px;
    position: relative;
}

.notice-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #37b04f, #4fc3f7);
}

.notice-header h3 {
    color: #37b04f;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notice-header h3 i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

/* 公告项目样式 */
.notice-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 5px;
    /* border-left: 4px solid #37b04f; */
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: auto;
}

.notice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(54, 177, 247, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.notice-item:hover::before {
    left: 100%;
}

.notice-item:hover {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(54, 177, 247, 0.2);
    transform: translateX(5px);
}

/* 公告标题文字 */
.notice-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
}

/* 公告内容文字 */
.notice-text {
    color: #666;
    line-height: 1.5;
    font-size: 13px;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    overflow: visible;
}

/* 公告时间 */
.notice-time {
    color: #999;
    font-size: 12px;
    text-align: right;
    position: relative;
    z-index: 1;
}

/* 无公告信息样式 */
.no-notice {
    text-align: center;
    color: #999;
    padding: 30px 20px;
    font-size: 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 5px;
}

.no-notice i {
    margin-right: 5px;
    font-size: 16px;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notice-item {
    animation: fadeInUp 0.5s ease-out;
}

.notice-item:nth-child(2) { animation-delay: 0.1s; }
.notice-item:nth-child(3) { animation-delay: 0.2s; }
.notice-item:nth-child(4) { animation-delay: 0.3s; }
.notice-item:nth-child(5) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 1080px) {
    .notice-container {
        width: 45%;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    .notice-container {
        width: 45%;
        margin-top: 20px;
    }
}

@media (max-width: 800px) {
    .notice-container {
        width: 45%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .graphs {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .notice-container {
        margin: 0 auto;
        width: 75%;
        padding: 15px;
        border-radius: 8px;
    }
    
    .notice-header h3 {
        font-size: 16px;
    }
    
    .notice-title {
        font-size: 13px;
    }
    
    .notice-text {
        font-size: 12px;
    }
    
    .notice-time {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .notice-container {
        width: 75%;
    }
}

@media (max-width: 480px) {
    .graphs {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .notice-container {
        margin: 0 auto;
        width: 90%;
        padding: 12px;
        margin-top: 20px;
    }
    
    .notice-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .notice-header h3 {
        font-size: 15px;
    }
} 