/* 汐宝宝开心心 - 置顶新闻样式 */
/* 粉色可爱主题风格 */

/* 防止加载时闪现 */
#stickyNewsContainer {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#stickyNewsContainer.loaded {
    opacity: 1;
}

.sticky-news-container {
    background: linear-gradient(135deg, #FFE4E1, #E6E6FA);
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.sticky-news-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.sticky-news-header {
    display: none;
}

.sticky-news-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.sticky-news-label {
    font-family: 'XinDiPao', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #FF69B4;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.sticky-news-content {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 182, 193, 0.3);
    align-items: flex-start;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.sticky-news-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.sticky-news-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.sticky-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sticky-news-content:hover .sticky-news-image img {
    transform: scale(1.05);
}

.sticky-news-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.sticky-news-info {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
    padding-right: 0;
}

.sticky-news-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.3);
    animation: pulse 2s infinite;
}

.sticky-news-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    word-wrap: break-word;
}

.sticky-news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.sticky-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.sticky-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sticky-news-tag {
    padding: 3px 8px;
    background: rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    font-size: 11px;
    color: #8B4B9B;
    font-family: 'XinDiPao', sans-serif;
    white-space: nowrap;
}

.sticky-news-category {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.sticky-news-date {
    color: #999;
    font-size: 11px;
    margin-left: auto;
    flex-shrink: 0;
}

.sticky-news-date::before {
    content: '🕐';
    font-size: 10px;
}

.sticky-news-loading {
    text-align: center;
    padding: 40px;
    color: #FF69B4;
    font-family: 'XinDiPao', sans-serif;
    position: relative;
    z-index: 1;
}

.sticky-news-error {
    text-align: center;
    padding: 40px;
    color: #FF1493;
    font-family: 'XinDiPao', sans-serif;
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sticky-news-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sticky-news-image {
        width: 100%;
        height: 120px;
    }
    
    .sticky-news-meta {
        flex-direction: column;
        gap: 8px;
    }
}

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