.library-header {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    color: var(--white);
}

library-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

library-header p {
    font-size: 14px;
    opacity: 0.9;
}

.library-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.library-notice .icon {
    font-size: 20px;
}

.library-notice .text {
    color: #92400e;
    font-size: 14px;
}

.library-list {
    display: grid;
    gap: 12px;
}

.library-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.library-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.library-item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.library-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

.library-title {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.library-title:hover {
    color: var(--primary-color);
}

.library-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.library-price {
    color: #ef4444;
    font-weight: 600;
    font-size: 16px;
}

.library-action-btn {
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.library-action-btn.purchase {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: var(--white);
}

.library-action-btn.purchase:hover {
    opacity: 0.9;
}

.library-action-btn.read {
    background: var(--success-color, #10b981);
    color: var(--white);
}

.library-action-btn.read:hover {
    opacity: 0.9;
}

.library-action-btn.locked {
    background: var(--bg-color);
    color: var(--text-light);
    cursor: pointer;
}

.library-action-btn.locked:hover {
    background: #fee2e2;
    color: #ef4444;
}

.library-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.purchase-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.purchase-modal.show {
    display: flex;
}

.purchase-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.purchase-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.purchase-modal h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.purchase-modal p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.purchase-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.article-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.article-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-detail-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.article-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

@media (max-width: 768px) {
    .library-header {
        padding: 24px;
    }

    .library-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .library-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .article-detail {
        padding: 24px;
    }

    .article-detail-title {
        font-size: 22px;
    }
}