.main-books {
    width: 100%;
    margin: 2rem auto;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.books-left {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    flex: 1;
    max-width: 1100px;
    padding: 0 5rem 0 0;
    border-right: 1px solid #E2E8F0;
}

.books-image {
    width: 360px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
}

.books-image img {
    width: 360px;
    height: 540px;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
}

.books-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.books-bigtitle {
    font-size: 3rem;
    font-weight: 700;
    color: #1E293B;
}

.books-author {
    font-size: 1.5rem;
    color: #64748B;
    font-weight: 500;
}

.books-progressCard {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.books-progressTime,
.books-progressPage,
.books-progress {
    flex: 1;
    min-width: 0;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.books-progressCard h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.books-progressCard span {
    font-size: 1rem;
    font-weight: 700;
    color: #1E293B;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    margin-top: 0.25rem;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 68%;
    background: #3B82F6;
    border-radius: 3px;
}

.books-synopsis {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.books-synopsisText {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

.books-readbtn {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    background: #3B82F6;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.books-readbtn:hover {
    background: #2563EB;
}

.books-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
}

.books-listTitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E293B;
}

.books-shelf {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.books-item {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    align-items: flex-start;
}

.books-item:hover {
    border-color: #3B82F6;
    background: #F8FAFC;
}

.books-item.active {
    border-color: #3B82F6;
    background: #EFF6FF;
}

.books-item-img {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.books-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.books-item .books-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
}

.books-item .books-author {
    font-size: 0.8rem;
    color: #64748B;
}

.books-progressBar {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin: 0.25rem 0;
    overflow: hidden;
    position: relative;
}

.books-item:nth-child(1) .books-progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 65%;
    background: #3B82F6;
    border-radius: 2px;
}

.books-item:nth-child(2) .books-progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 12%;
    background: #3B82F6;
    border-radius: 2px;
}

.books-item:nth-child(3) .books-progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 15%;
    background: #3B82F6;
    border-radius: 2px;
}

.books-item:nth-child(4) .books-progressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 68%;
    background: #2563EB;
    border-radius: 2px;
}

.books-item .books-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 0.5px;
}

.books-nextbtn {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.books-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.books-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
    background: #EFF6FF;
}

.books-btn.active {
    border-color: #3B82F6;
    color: #3B82F6;
    background: #EFF6FF;
}

.books-btn svg {
    display: block;
}

@media (max-width: 768px) {
.main-books {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

    .books-progressCard {
        flex-wrap: wrap;
    }

    .books-progressTime,
    .books-progressPage,
    .books-progress {
        min-width: 100px;
    }
}

@media (max-width: 600px) {
    .main-books {
        margin: 1rem auto;
    }

    .books-left {
        flex-direction: column;
    }

    .books-image {
        width: 100%;
        max-width: 240px;
        align-self: center;
    }

    .books-bigtitle {
        font-size: 1.25rem;
    }

    .books-progressCard {
        flex-direction: column;
        gap: 0.75rem;
    }
}
