/* DIY文章合集样式 */

.diy-collection {
margin-bottom: 30px;
}

.diy-collection .collection-title {
font-size: 24px;
margin-bottom: 10px;
color: #333;
}

.diy-collection .collection-description {
margin-bottom: 20px;
color: #666;
}

.collection-articles {
list-style: none;
padding: 0;
margin: 0;
}

.collection-article-item {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}

.collection-article-item:last-child {
border-bottom: none;
}

.article-link {
text-decoration: none;
color: #0073aa;
font-size: 18px;
font-weight: 500;
}

.article-link:hover {
color: #00a0d2;
}

.article-date {
display: block;
font-size: 14px;
color: #999;
margin-top: 5px;
}

.article-excerpt {
margin-top: 10px;
color: #666;
line-height: 1.5;
}

.no-articles {
text-align: center;
color: #999;
font-style: italic;
padding: 20px;
}

/* 所有合集样式 */
.diy-collections-all {
margin-bottom: 30px;
}

.diy-collection-item {
margin-bottom: 25px;
padding: 20px;
background-color: #f9f9f9;
border-radius: 4px;
}

.collection-item-title {
font-size: 20px;
margin-bottom: 10px;
}

.collection-item-link {
text-decoration: none;
color: #0073aa;
}

.collection-item-link:hover {
color: #00a0d2;
}

.collection-item-description {
margin-bottom: 10px;
color: #666;
line-height: 1.5;
}

.collection-item-meta {
font-size: 14px;
color: #999;
}

.no-collections {
text-align: center;
color: #999;
font-style: italic;
padding: 40px;
}

/* 管理页面样式 */
.article-info {
background-color: #f9f9f9;
padding: 15px;
border-radius: 4px;
}

.article-info h4 {
margin-top: 0;
color: #333;
}

.article-info table {
border-collapse: collapse;
width: 100%;
}

.article-info td {
padding: 8px;
border-bottom: 1px solid #eee;
}

.article-info tr:last-child td {
border-bottom: none;
}

.article-info strong {
color: #333;
}

.error {
color: #dc3232;
font-weight: 500;
}

.diy-collections-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.diy-collections-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}
.diy-collections-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}
.diy-collections-table tr:hover {
    background-color: #f8f9fa;
}
.diy-collections-table .excerpt-cell {
    max-width: 250px;
    overflow: hidden;
}
.diy-collections-table .excerpt-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}
.diy-collections-table .thumbnail-cell {
    text-align: center;
}
.diy-collections-table .thumbnail-cell img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.diy-collections-table .thumbnail-cell img:hover {
    transform: scale(1.05);
}
.diy-collections-table .action-cell {
    white-space: nowrap;
}
.diy-collections-table .button {
    margin: 2px;
    font-size: 12px;
    padding: 4px 8px;
}
