
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

/* 通知容器 */
.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 滚动通知区域 */
.scrolling-notice {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scrolling-notice::before,
.scrolling-notice::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 1;
}

.scrolling-notice::before {
    left: 0;
    background: linear-gradient(to right, rgba(79, 172, 254, 1), transparent);
}

.scrolling-notice::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 242, 254, 1), transparent);
}

/* 通知内容 */
.notice-content {
    display: inline-block;
    padding-left: 100%;
    color: yellow;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: scroll 20s linear infinite;
    animation-play-state: running;
}

.notice-content:hover {
    animation-play-state: paused;
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notice-content {
        font-size: 1.8em;
        animation-duration: 25s;
    }
    
    body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .notice-content {
        font-size: 1.6em;
        animation-duration: 30s;
    }
}
