/* 公告滚动独立样式 */
.notice-scroll {
    width: 100%;
    /* 移除固定默认值，改为通过PHP动态赋值CSS变量 */
    height: var(--notice-height); 
    line-height: 40px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f9f9f9;
    margin: 0 0 15px 0;
    position: relative;
    box-sizing: border-box; /* 核心：避免边框撑大宽度 */
}
.notice-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: top .5s ease;
}
.notice-item {
    height: 40px;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.notice-item a {
    color: #333;
    text-decoration: none;
    display: block;
}
.notice-item a:hover {
    color: #007bff;
}
.notice-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 移动端适配（重点优化） */
@media (max-width:768px) {
    .notice-scroll {
        /* 移动端同样改为动态变量 */
        height: var(--notice-mobile-height); 
        line-height: 36px;
        margin: 0 0 10px 0; /* 减小移动端间距 */
        width: 100% !important; /* 强制占满宽度 */
    }
    .notice-item {
        height: 36px;
        padding: 0 10px; /* 减小移动端内边距，避免文字溢出 */
    }
    .notice-date {
        font-size: 11px; /* 移动端日期字号更小 */
        margin-left: 5px;
    }
}