/* 内容表格样式 */
.content-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.content-table th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
}

.content-table td {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.content-table tr:hover {
    background: #f8f9fa;
}

.content-table tr:last-child td {
    border-bottom: none;
}

/* 表格内容样式 */
.content-title {
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.content-title:hover {
    text-decoration: underline;
}

.content-desc {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 4px;
}

.content-source {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #6c757d;
    display: inline-block;
}

.content-category {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

.content-time {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

/* 互动统计样式 */
.interaction-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
}

.interaction-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 互动按钮样式 */
.interaction-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.interaction-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: #6c757d;
    text-align: center;
}

.interaction-btn:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #adb5bd;
}

.interaction-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.interaction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 特殊的互动按钮样式 */
.like-btn.active {
    background: #28a745;
    border-color: #28a745;
}

.bookmark-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.comment-btn:hover {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

/* 表格响应式设计 */
@media (max-width: 1200px) {
    .content-table th:nth-child(5),
    .content-table td:nth-child(5) {
        display: none; /* 隐藏互动统计列 */
    }
}

@media (max-width: 992px) {
    .content-table th:nth-child(4),
    .content-table td:nth-child(4) {
        display: none; /* 隐藏时间列 */
    }
}

@media (max-width: 768px) {
    .content-table {
        font-size: 14px;
    }
    
    .content-table th,
    .content-table td {
        padding: 12px 8px;
    }
    
    .content-table th:nth-child(3),
    .content-table td:nth-child(3) {
        display: none; /* 隐藏分类列 */
    }
    
    .interaction-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .interaction-btn {
        flex: 1;
        min-width: 60px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .content-table th:nth-child(2),
    .content-table td:nth-child(2) {
        display: none; /* 隐藏来源列 */
    }
    
    .content-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .content-table thead,
    .content-table tbody,
    .content-table th,
    .content-table td,
    .content-table tr {
        display: block;
    }
    
    .content-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .content-table tr {
        border: 1px solid #dee2e6;
        margin-bottom: 8px;
        padding: 12px;
        border-radius: 4px;
        background: white;
    }
    
    .content-table td {
        border: none;
        padding: 8px 0;
        position: relative;
        white-space: normal;
    }
    
    .content-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #333;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: #333;
}

.empty-state p {
    margin-bottom: 16px;
}

/* 加载表格样式 */
.loading-table {
    text-align: center;
    padding: 48px;
}

.loading-table .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表格排序样式 */
.sortable-header {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

.sortable-header:hover {
    background: #e9ecef;
}

.sortable-header::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #6c757d;
    opacity: 0.3;
}

.sortable-header.sort-asc::after {
    border-bottom: 4px solid #007bff;
    opacity: 1;
}

.sortable-header.sort-desc::after {
    border-bottom: none;
    border-top: 4px solid #007bff;
    opacity: 1;
} 