/* --- 主容器样式 --- */
.integrated-section {
    width: 100%;
    max-width: 960px; /* 根据你的网站布局调整 */
    padding: 2rem;
    text-align: center;
    margin: 0 auto; /* 在页面中居中显示 */
}
/* --- Roll点功能区 --- */
.roll-container p {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: .1em;
    margin-bottom: 1.5rem;
    color: #eee;
}

.roll-container a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.roll-container a:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* --- 随机标签展示区 (动画优化) --- */
.roll-tag-wrapper {
    display: none; /* 默认隐藏 */
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
    /* 模仿你网站中的装饰线 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
}

.roll-tag {
    min-height: 80px; /* 增加高度以容纳动画 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 隐藏动画溢出部分 */
}

.roll-tag span {
    position: absolute;
    box-shadow: 0 0 20px rgba(0, 0, 0, .28);
    background-color: #333;
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    opacity: 0;
    animation-fill-mode: forwards; /* 保持动画结束状态 */
}

.roll-tag span::before {
    content: '#';
    margin-right: 8px;
    color: #888;
}

/* 应用动画 */
.roll-tag span.ready {
    animation: tag-entering 0.2s ease-out forwards;
}

.roll-tag span.removing {
    animation: tag-removing 0.2s ease-in forwards;
}

/* 定义动画关键帧 */
@keyframes tag-entering {
    from {
        opacity: 0;
        transform: scale(0.8) translateX(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes tag-removing {
    from {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateX(50px);
    }
}

