/* 跑马灯容器 - 确保垂直居中 */
.marquee-container {
    width: 350px;
    height: 50px;
    background-color: #000000;
    border: 4px solid #8b0000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-right: 0;
    display: flex; /* 关键：使用flex布局 */
    align-items: center; /* 关键：垂直居中 */
}

/* 跑马灯包装器 */
.marquee-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex; /* 关键：这里也需要flex */
    align-items: center; /* 关键：垂直居中 */
}

/* 跑马灯内容 - 调整位置 */
.marquee-content {
    position: absolute;
    white-space: nowrap;
    color: #ff0000;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
    animation: marquee 40s linear infinite;
    min-width: 200%;
    left: 100%;
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
    line-height: normal; /* 设置正常行高 */
    /* 使用transform实现精确垂直居中 */
    top: 50%;
    transform: translateY(-50%);
}

@keyframes marquee {
    0% {
        transform: translateX(0) translateY(-50%); /* 保持垂直居中 */
    }
    100% {
        transform: translateX(-100%) translateY(-50%); /* 保持垂直居中 */
    }
}

/* 发光效果 */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000;
    }
    50% {
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
}

.glow-text {
    animation: glow 2s ease-in-out infinite alternate;
}