/* 文章管理页面样式 */
.lfe-manager-container,
.lfe-statistics-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.lfe-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.lfe-header-actions {
    display: flex;
    gap: 10px;
}

/* 筛选器 */
.lfe-manager-filters {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.lfe-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lfe-filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

/* 文章表格 */
.lfe-posts-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.lfe-posts-table {
    width: 100%;
    border-collapse: collapse;
}

.lfe-posts-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.lfe-posts-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lfe-posts-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
}

.lfe-posts-table tbody tr:hover {
    background: #f9fafb;
}

.lfe-posts-table tbody tr:last-child td {
    border-bottom: none;
}

.lfe-post-title-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lfe-post-title-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.lfe-status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

.lfe-status-publish {
    background: #d1fae5;
    color: #065f46;
}

.lfe-status-draft {
    background: #e5e7eb;
    color: #374151;
}

.lfe-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.lfe-status-private {
    background: #dbeafe;
    color: #1e40af;
}

.lfe-post-actions {
    display: flex;
    gap: 8px;
}

.lfe-action-link {
    padding: 6px 12px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lfe-action-edit {
    color: #3b82f6;
    background: #eff6ff;
}

.lfe-action-edit:hover {
    background: #dbeafe;
}

.lfe-action-view {
    color: #10b981;
    background: #d1fae5;
}

.lfe-action-view:hover {
    background: #a7f3d0;
}

.lfe-action-delete {
    color: #ef4444;
    background: #fee2e2;
    cursor: pointer;
    border: none;
}

.lfe-action-delete:hover {
    background: #fecaca;
}

/* 加载状态 */
.lfe-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.lfe-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* 分页 */
.lfe-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lfe-page-btn {
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lfe-page-btn:hover:not(.lfe-page-active):not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.lfe-page-btn.lfe-page-active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.lfe-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 统计页面样式 */
.lfe-statistics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lfe-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lfe-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lfe-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lfe-icon-posts {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lfe-icon-views {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.lfe-icon-comments {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.lfe-icon-published {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.lfe-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 5px;
}

.lfe-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.lfe-statistics-section {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lfe-section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.lfe-status-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lfe-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 6px;
}

.lfe-status-count {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.lfe-popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lfe-popular-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lfe-popular-item:hover {
    background: #f3f4f6;
}

.lfe-popular-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.lfe-popular-info {
    flex: 1;
}

.lfe-popular-title {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lfe-popular-title:hover {
    color: #3b82f6;
}

.lfe-popular-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}

/* 回复可见样式 */
.lfe-reply-visible-content {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.lfe-reply-visible-content.lfe-visible {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
}

.lfe-reply-visible-content.lfe-hidden {
    background: #fef3c7;
    border: 2px dashed #f59e0b;
}

.lfe-hidden-notice {
    text-align: center;
    padding: 30px 20px;
}

.lfe-lock-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.lfe-hidden-notice p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #92400e;
    font-weight: 500;
}

.lfe-reply-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #f59e0b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lfe-reply-btn:hover {
    background: #d97706;
}

.lfe-content-wrapper {
    margin-bottom: 15px;
}

.lfe-copy-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lfe-copy-btn:hover {
    background: #2563eb;
}

.lfe-copy-success {
    display: inline-block;
    margin-left: 10px;
    color: #10b981;
    font-size: 13px;
    animation: lfe-fadeIn 0.3s ease;
}

@keyframes lfe-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lfe-manager-container,
    .lfe-statistics-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .lfe-manager-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .lfe-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .lfe-manager-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lfe-filter-group {
        width: 100%;
    }
    
    .lfe-posts-table th,
    .lfe-posts-table td {
        padding: 10px;
        font-size: 13px;
    }
    
    .lfe-post-actions {
        flex-direction: column;
    }
    
    .lfe-statistics-cards {
        grid-template-columns: 1fr;
    }
    
    .lfe-status-distribution {
        grid-template-columns: 1fr;
    }
}
