/* 跑马灯组件样式 - 可嵌入到任何侧边栏 */
.marquee-sidebar-component {
    width: 330px; /* 根据您侧边栏调整的宽度 */
    max-width: 100%; /* 自适应父容器 */
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #eef2f7;
    margin: 0 auto 20px;
}

/* 组件头部 */
.marquee-header {
    background: linear-gradient(to right, #4a6fa5, #6b8cbc);
    color: white;
    padding: 16px 20px;
    text-align: center;
}

.marquee-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 内容容器 */
.marquee-content-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #f9fafb;
}

/* 跑马灯轨道 */
.marquee-content-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content-track.paused {
    animation-play-state: paused;
}

/* 单个项目 */
.marquee-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: white;
    border-bottom: 1px solid #f0f4f9;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 12px;
}

.marquee-item:hover {
    background-color: #f8fafd;
    transform: translateX(3px);
}

.marquee-item.active {
    background-color: #f0f7ff;
    border-left: 3px solid #4a6fa5;
}

/* 头像 */
.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.avatar-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.avatar-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.avatar-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.avatar-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.avatar-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.avatar-7 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.avatar-8 { background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); }

/* 内容区域 */
.item-content {
    flex: 1;
    min-width: 0;
}

/* 用户信息 - 包含两个姓名字段 */
.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

.secondary-name {
    color: #4a6fa5;
    font-weight: 500;
    font-size: 0.9em;
    background-color: #f0f7ff;
    padding: 2px 6px;
    border-radius: 4px;
}

.user-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
}

.status-online {
    background-color: #e8f5e9;
    color: #4CAF50;
}

.status-away {
    background-color: #fff3e0;
    color: #FF9800;
}

.status-offline {
    background-color: #f5f5f5;
    color: #9E9E9E;
}

/* 时间和标题 */
.item-time {
    color: #7f8c9a;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.item-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 4px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-badge {
    display: inline-block;
    padding: 1px 6px;
    background-color: #e8efff;
    color: #4a6fa5;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

.item-desc {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 控制栏 */
.marquee-controls {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
    background-color: white;
    border-top: 1px solid #f0f4f9;
    gap: 12px;
}

.control-btn {
    background-color: #f0f4f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a6fa5;
    font-size: 1.1em;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #4a6fa5;
    color: white;
    transform: scale(1.05);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px;
}

.speed-btn {
    background-color: #f0f4f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a6fa5;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    background-color: #4a6fa5;
    color: white;
}

.speed-display {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: #4a6fa5;
    font-size: 0.9em;
}

/* 底部 */
.marquee-footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 0.8em;
    color: #7f8c9a;
    background-color: #f9fafb;
    border-top: 1px solid #f0f4f9;
}

.marquee-footer a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 600;
}

.marquee-footer a:hover {
    text-decoration: underline;
}

/* 渐变遮罩 */
.gradient-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 2;
    pointer-events: none;
}

.gradient-top {
    top: 0;
    background: linear-gradient(to bottom, #f9fafb, rgba(249, 250, 251, 0));
}

.gradient-bottom {
    bottom: 0;
    background: linear-gradient(to top, #f9fafb, rgba(249, 250, 251, 0));
}

/* 动画 */
@keyframes marquee-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .marquee-sidebar-component {
        width: 100%;
        max-width: 100%;
    }
    
    .marquee-content-container {
        height: 400px;
    }
}
/* 确保所有信息在一行显示 */
		.header-meta-style1 ul {
		    display: flex;
		    flex-wrap: nowrap;
		    align-items: center;
		    white-space: nowrap;
		    gap: 15px;
		    margin: 0;
		    padding: 0;
		}
		
		.header-meta-style1 ul li {
		    display: flex;
		    align-items: center;
		    gap: 5px;
		    white-space: nowrap;
		}
		
		/* 调整iframe容器大小 */
		#weather-iframe {
		    width: 250px;
		    height: 20px;
		    vertical-align: middle;
		}
		
		/* 小屏幕适配 */
		@media (max-width: 768px) {
		    .header-meta-style1 ul {
		        gap: 10px;
		    }
		    
		    #weather-iframe {
		        width: 200px;
		    }
		}