/* 多啦汐の任意门 - 置顶新闻样式 */
/* 科技未来风格主题 */

.sticky-news-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sticky-news-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    /* 移除scan动画，避免卡顿 */
}

.sticky-news-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sticky-news-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.sticky-news-icon {
    font-size: 24px;
    color: #667eea;
    /* 移除pulse动画，避免卡顿 */
}

.sticky-news-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    letter-spacing: 1px;
}

.sticky-news-content {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.sticky-news-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 12px;
}

.sticky-news-content:hover::before {
    opacity: 1;
}

.sticky-news-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.sticky-news-image {
    flex-shrink: 0;
    width: 140px;
    height: 105px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.sticky-news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sticky-news-content:hover .sticky-news-image::before {
    opacity: 1;
}

.sticky-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    filter: brightness(0.9) contrast(1.1);
}

.sticky-news-content:hover .sticky-news-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

.sticky-news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    position: relative;
}

.sticky-news-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    /* 移除shimmer动画，避免卡顿 */
}

.sticky-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sticky-news-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    /* 移除glow动画，避免卡顿 */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sticky-news-badge::before {
    content: '⚡ ';
    font-size: 10px;
}

.sticky-news-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sticky-news-summary {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sticky-news-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
    align-items: center;
}

.sticky-news-category {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(240, 147, 251, 0.3));
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(5px);
}

.sticky-news-category::before {
    content: '🔖 ';
    font-size: 10px;
}

.sticky-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sticky-news-date::before {
    content: '🕒';
    font-size: 11px;
}

.sticky-news-loading {
    text-align: center;
    padding: 50px;
    color: #667eea;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.sticky-news-loading::before {
    content: '🔄 ';
    font-size: 20px;
    /* 移除spin动画，避免卡顿 */
}

.sticky-news-error {
    text-align: center;
    padding: 50px;
    color: #f093fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.sticky-news-error::before {
    content: '⚠️ ';
    font-size: 20px;
}

/* 简化动画效果，移除复杂的keyframes动画以提升性能 */

/* 响应式设计 */
@media (max-width: 768px) {
    .sticky-news-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .sticky-news-image {
        width: 100%;
        height: 140px;
    }
    
    .sticky-news-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sticky-news-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .sticky-news-content {
        padding: 20px;
    }
    
    .sticky-news-image {
        height: 120px;
    }
    
    .sticky-news-title {
        font-size: 16px;
    }
    
    .sticky-news-summary {
        font-size: 13px;
    }
    
    .sticky-news-label {
        font-size: 16px;
    }
}