/* 管理界面样式 */
.jefrss-admin {
    /* 移除任何限制性的宽度设置 */
    width: 100%;
    box-sizing: border-box;
}

.jefrss-admin .grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.jefrss-container {
    padding: 20px;
}

.jefrss-site-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 10px;
}

.jefrss-status-success {
    color: #46b450;
}

.jefrss-status-error {
    color: #dc3232;
}

/* 前端展示样式 */
.jefrss-feed-container {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}

.jefrss-feed-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.jefrss-feed-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.jefrss-feed-date {
    color: #666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .jefrss-feed-container {
        margin: 10px 0;
    }

    .jefrss-feed-item {
        padding: 15px 10px;
    }

    .jefrss-feed-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .jefrss-feed-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .jefrss-site-icon {
        width: 14px;
        height: 14px;
    }
}

@media screen and (max-width: 480px) {
    .jefrss-feed-container {
        margin: 5px 0;
    }

    .jefrss-feed-item {
        padding: 12px 8px;
    }

    .jefrss-feed-title {
        font-size: 15px;
    }

    .jefrss-feed-content {
        font-size: 13px;
    }

    /* 管理界面响应式 */
    .form-table td input[type="url"],
    .form-table td input[type="number"] {
        width: 100%;
        max-width: none;
    }
}

/* 添加弹性布局支持 */
.jefrss-feed-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jefrss-feed-title a {
    flex: 1;
    word-break: break-word;
}

/* 优化列表布局 */
.wp-list-table {
    table-layout: auto;
}

@media screen and (max-width: 782px) {
    .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
        display: block;
        width: auto;
        padding: 8px;
    }

    .wp-list-table td.column-primary {
        padding-right: 50px;
    }

    .wp-list-table .is-expanded td:not(.hidden) {
        display: block !important;
        overflow: hidden;
    }
}

/* 添加过渡动画 */
.jefrss-feed-item {
    transition: all 0.3s ease;
}

.jefrss-feed-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

/* 优化图标显示 */
.jefrss-site-icon {
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 图标样式 */
.jefrss-feed-icon {
    width: 45px;
    height: 45px;
    border-radius: 10%;
    margin-right: 10px;
    vertical-align: middle;
}

/* 站点图标样式 */
.site-icon {
    /* 这些样式可以删除，因为现在直接在HTML中控制 */
}

.jefrss-feeds {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.feed-source {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.feed-source h3 {
    margin: 0;
    padding: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.feed-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 4px;
}

.feed-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item h4 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.feed-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.feed-item h4 a:hover {
    color: #0066cc;
}

.feed-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.feed-date {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 0.9em;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .jefrss-feeds {
        padding: 10px;
    }
    
    .feed-source h3 {
        font-size: 1.2em;
    }
    
    .feed-item h4 {
        font-size: 1.1em;
    }
}

