#collections, #history, #downloads {
    margin-top: 30px;
}

#create-collection {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

#collection-list, #history-list, #download-list {
    border: 1px solid #ddd;
    padding: 10px;
}

/* 收藏模态框特定样式 */
#collection-modal .modal-content {
    background-color: #fff;
    border-radius: 5px;
    max-width: 600px;
}

#collection-modal h2 {
    background-color: #e6f7ff;
    color: #000;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* 查看收藏模态框特定样式 */
#view-collection-modal .modal-content {
    height: 75vh;
    width: 80%;
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-body {
    height: calc(100% - 60px);
    overflow-y: auto;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 收藏列表样式 */
#collection-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 20px;
}

.collection-item {
    border: 1px solid #fff;
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    background-color: #f0f0f0;
    text-align: center;
}

.collection-item:hover {
    transform: translateY(-5px);
}

.collection-name {
    font-size: 1em;
    color: #d1001d;
    margin-bottom: 10px;
    position: absolute;
    top: 5px;
    left: 6px;
    font-weight: bold;
}

.collection-visibility {
    color: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.view-collection-btn {
    background-color: #4c8daf;
    color: white;
    border: none;
    padding: 5px 10px;
    
    position: absolute;
    right: 10px;
    top: 3px;
    border-radius: 3px;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #4CAF50;
    color: white;
}
/* 收藏夹简介样式 */
.collection-description {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}
/* 收藏项目复选框样式 */
.collection-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

.collection-item input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

/* 确认按钮样式 */
.confirm-collection-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 16px;
    margin: 20px auto 0;
    cursor: pointer;
    border-radius: 5px;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
}

/* 收藏文章样式 */
.collection-article {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
}

.collection-article h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #000;
    margin-left: 10px;
}

.collection-article .tags {
    margin-top: 15px;
    margin-left: 15px;
}

.collection-article .tag {
    background-color: #00CED1;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}

.collection-article p {
    margin-top: 15px;
    margin-left: 15px;
    color: #fff;
    background-color: #333;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 45px);
}

.collection-article button {
    background-color: #ffcccb;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: auto;
    font-size: 0.8em;
}

/* 可见性标记样式 */
.visibility-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ffcccb;
    border: 2px solid #ffd700;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 收藏文章列表样式 */
#collection-articles {
    margin-top: 20px;
}

/* 分页样式 */
#collection-pagination {
    margin-top: 20px;
    text-align: center;
}

#collection-pagination button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
}

#collection-pagination button.active {
    background-color: #4CAF50;
    color: white;
}
