
body {
    font-size: 0.96rem;
}

/* 字幕 */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #3B82F6;
    padding: 2px 0;
}
.marquee-text {
    white-space: nowrap;
    color: white;
    font-size: 16px;
    animation: scroll-right-to-left 55s linear infinite;
}
@keyframes scroll-right-to-left {
    0% { transform: translateX(100%); } /* 初始位置在右侧 */
    100% { transform: translateX(-150%); } /* 最终位置在左侧 */
}

/* 添加高优先级的黄色背景样式 */
#main-header.scroll-bg {
    background-color: rgba(253, 230, 138, 0.95) !important; /* 对应Tailwind的yellow-100/95 */
}

/* Tailwind自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .brightness-110 {
        filter: brightness(1.1);
    }
    .wechat-font-scale {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 1500px) {
    .yincang_1 {
        display: none !important;
    }
}   

@media (max-width: 1023px) {
    .aside {
        display: none !important;
    }
} 

.aside {
    min-width: 232px; /* 防止容器过窄导致标签列数变化 */
}

/* 优化后的标签云样式 */
.tag-cloud-container {
    height: 230px; /* 7行 × 25px行高 = 175px */
    overflow: hidden;
}
.tag-cloud-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    line-height: 25px; /* 固定行高 */
}
.tag-cloud-content a {
    height: 25px; /* 固定每个标签高度 */
    line-height: 25px; /* 确保文字垂直居中 */
    padding: 0 12px;
    margin-bottom: 0;
    white-space: nowrap;
}