/* ========================================
   朋友圈页面样式
   ======================================== */

#rss-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

/* 骨架屏样式 */
.skeleton-card {
    position: relative;
    border: 2px solid #000;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        background-color: #f6f6f6;
    }
    50% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #f6f6f6;
    }
}

.skeleton-title {
    height: 24px;
    background-color: #e0e0e0;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-summary {
    height: 40px;
    background-color: #e0e0e0;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.skeleton-meta-left {
    width: 120px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.skeleton-meta-right {
    width: 80px;
    height: 16px;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.wireframe-card {
    position: relative;
    border: 2px solid #000;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

.wireframe-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0px #000;
}

.wireframe-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    border-bottom-left-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
    line-height: 1.2;
}

.meta-pill {
    display: inline-flex;
    border: 1.5px solid #000;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.4;
    overflow: hidden;
}

.meta-pill-left {
    padding: 2px 6px;
    border-right: 1.5px solid #000;
    background: #fff;
    color: #000;
}

.meta-pill-right {
    padding: 2px 6px;
    background: #fff;
    color: #000;
}

.card-content {
    padding: 20px 20px 15px 20px;
}

.card-title {
    font-weight: 900;
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none;
    color: inherit;
    border-bottom: 2px solid transparent;
}

.card-summary {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.card-date {
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.ai-summary {
    height: 2px;
    background: #000;
    width: 100%;
}

.ai-content {
    padding: 15px 20px;
    background: #fff;
}

.ai-content div {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
    font-weight: bold;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

/* 友好的错误提示样式 */
.friendly-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
}

.friendly-error h3 {
    color: #333;
    margin-bottom: 10px;
}

.friendly-error p {
    color: #666;
    margin-bottom: 20px;
}

.friendly-error button {
    background-color: #cc493d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.friendly-error button:hover {
    background-color: #b33e32;
}

/* 适配主题样式 */
@media (max-width: 768px) {
    #rss-cards {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }
}

/* 图片懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}