﻿.lt-book-test-host,
.lt-book-test-wrapper,
.lt-book-test,
.lt-book-test .lt-book-stage,
.lt-book-test .lt-book-row,
.lt-book-test .document-book,
.lt-book-test .pd-book,
.lt-book-test .page,
.lt-book-test .face {
    overflow: visible !important;
}

.lt-book-test-wrapper {
    max-width: none !important;
    width: calc(100% - 24px) !important;
    margin: 0 12px !important;
}

.lt-book-test .lt-book-stage {
    width: 100%;
}

.lt-book-test .lt-book-row {
    display: grid !important;
    grid-template-columns: repeat(var(--lt-book-cols, 5), minmax(0, 1fr));
    align-items: end;
    gap: 0 var(--lt-book-gap, 18px);
    width: 100%;
    margin-bottom: 2px;
}

.lt-book-test .line-box.lt-zydoc-book-host {
    position: relative;
    z-index: 1;
    width: var(--lt-book-host-width, 190px);
    flex: 0 0 var(--lt-book-host-width, 190px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 18px !important;
}

.lt-book-test .line-box.lt-zydoc-book-host:hover {
    z-index: 30;
}

.lt-book-test .document-book {
    --width: var(--lt-book-width, 170px);
    --height: var(--lt-book-height, 210px);
    --radius: 20px;
    width: var(--width);
    height: var(--height);
}

@media (max-width: 767.5px) {
    .lt-book-test .document-book {
        --width: 150px;
        --height: 185px;
        --radius: 20px;
    }

    .lt-book-test .document-book .pd-book .title {
        font-size: 14px;
        margin: 35px 13px 0;
    }

    .lt-book-test .document-book .pd-book .cover + .title {
        margin-top: 125px;
    }

    .lt-book-test .pd-book .reading .label {
        font-size: 12px;
    }

    .lt-book-test .pd-book .reading .go {
        --size: 42px;
    }

    .lt-book-test .pd-book .reading {
        left: auto;
        right: -18px;
        top: 50%;
    }
}

.lt-book-test .pd-book {
    z-index: 2;
    position: relative;
    width: var(--width);
    height: var(--height);
    transform-origin: 20% 150%;
    margin-left: 10%;
    margin-top: 3%;
    transition: .5s;
}

.lt-book-test .pd-book.transform {
    transform: translate(-8%) translateY(-3%) scaleY(1.06) perspective(300px) rotate(-4deg) rotateX(5deg);
    transition: .4s;
}

.lt-book-test .pd-book.open,
.lt-book-test .pd-book:hover {
    z-index: 3;
    transform: perspective(120px) rotate(0) rotateX(0);
}

.lt-book-test .pd-book .cover {
    position: absolute;
    right: 1px;
    top: 1px;
    width: calc(100% - 7px);
    height: 75%;
    border-radius: 0 var(--radius) 0 0;
    mask: linear-gradient(#fff 25%, transparent 85%), linear-gradient(#fff 50%, #000) luminance;
    object-fit: cover;
    object-position: center;
    transition: opacity .3s .1s;
}

.lt-book-test .pd-book .title {
    position: relative;
    font-size: 16px;
    margin: 40px 15px 0;
    text-align: center;
    color: color-mix(in srgb, #00185eb0, #324057 30%);
    text-shadow: 0 1px #fff;
    line-height: 1.6;
    transform: translateZ(0);
    transition: opacity .3s .1s;
    word-break: break-word;
}

.lt-book-test .pd-book .cover + .title {
    margin-top: 140px;
    height: 3.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.lt-book-test .pd-book .order {
    position: absolute;
    right: 3px;
    bottom: 3px;
    border-radius: 25px 0 40px 25px;
    color: #007dff;
    border: 1px solid rgba(0, 125, 255, 0.10);
    background: rgba(0, 125, 255, 0.10);
    padding: 0 10px;
    font-size: 12px;
    opacity: 0;
    transition: .35s;
}

.lt-book-test .pd-book .face {
    position: absolute;
    z-index: 4;
    left: 0;
    top: 0;
    width: var(--width);
    height: var(--height);
    background: radial-gradient(at 100% 0%, rgba(50, 86, 179, 0.08), rgba(50, 86, 179, 0.22) var(--height)), linear-gradient(90deg, #b8c4df 1px, #fff 4px, #c0c3d5 6px, #fff 7px, #e5e9f0 9px, #f9fafc);
    box-shadow: 0 1px #fff inset, -1px 0 #fff inset, 0 1px 2px rgba(31, 45, 61, 0.10), calc(0px - var(--width)) 0 rgba(0, 24, 94, 0) inset;
    border-radius: 0 var(--radius) var(--radius) 0;
    transform-origin: left 60%;
    transform: perspective(510px);
    overflow: hidden;
    transition: .5s;
}

.lt-book-test .pd-book .face:has(.cover) {
    background: radial-gradient(at 100% 0%, rgba(50, 86, 179, 0), rgba(50, 86, 179, 0.16) var(--height)), linear-gradient(90deg, #b8c4df 1px, #fff 4px, #c0c3d5 6px, #fff 7px, #e5e9f0 9px, #f9fafc);
}

.lt-book-test .pd-book:hover .face,
.lt-book-test .pd-book.open .face {
    top: 1px;
    height: var(--height);
    transform: perspective(550px) rotateY(-105deg);
    box-shadow: 0 1px rgba(255, 255, 255, 0) inset, -1.5px 0 rgba(255, 255, 255, .31) inset, 0 1px 2px rgba(31, 45, 61, .10), calc(0px - var(--width)) 0 rgba(0, 24, 94, .32) inset, -5px 20px 35px -10px rgba(0, 24, 94, .56), 5px 0 0 -2px #b0bcca;
}

.lt-book-test .pd-book:hover .title,
.lt-book-test .pd-book.open .title,
.lt-book-test .pd-book:hover .cover,
.lt-book-test .pd-book.open .cover,
.lt-book-test .pd-book:hover .order,
.lt-book-test .pd-book.open .order {
    opacity: 0 !important;
}

.lt-book-test .pd-book .page {
    height: var(--height);
    position: absolute;
    left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 2px 1px -1px rgba(50, 86, 179, .20), -10px 6px 10px rgba(0, 24, 94, .04), 0 0 0 1px #fff inset;
    border-left: 2px solid rgba(0, 24, 94, .30);
    background: color-mix(in srgb, #eef3fa, #fff);
}

.lt-book-test .pd-book .page1 {
    z-index: 3;
    width: calc(var(--width) - 3px);
    top: 1px;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    opacity: 0;
    transition: opacity .28s ease;
}

.lt-book-test .pd-book:hover .page1,
.lt-book-test .pd-book.open .page1 {
    opacity: 1;
}

.lt-book-test .pd-book .page2 {
    z-index: 2;
    width: calc(var(--width) - 5px);
    top: 3px;
}

.lt-book-test .pd-book .page3 {
    z-index: 1;
    width: calc(var(--width) - 7px);
    top: 5px;
    box-shadow: 0 2px 1px -1px rgba(50, 86, 179, .20), -5px 5px 10px rgba(0, 24, 94, .08), 0 0 0 1px #fff inset;
}

.lt-book-test .lt-zydoc-book-legacy,
.lt-book-test .lt-zydoc-book-legacy-slot {
    display: none !important;
}

.lt-book-test .pd-book .reading {
    position: absolute;
    left: auto;
    right: -22px;
    top: 50%;
    transform: translateY(-50%) scale(.96);
    z-index: 5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease;
    white-space: nowrap;
}

.lt-book-test .pd-book:hover .reading,
.lt-book-test .pd-book.open .reading {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.lt-book-test .pd-book .reading .go {
    --size: 48px;
    width: var(--size);
    height: var(--size);
    display: block;
    border-radius: 50%;
    flex: 0 0 var(--size);
    position: relative;
    filter: drop-shadow(0 10px 22px rgba(18, 129, 236, .24));
}

.lt-book-test .pd-book .reading .go:before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(27, 145, 255, .42) 0%, rgba(27, 145, 255, .22) 36%, rgba(27, 145, 255, .10) 56%, rgba(27, 145, 255, .03) 69%, rgba(27, 145, 255, 0) 80%);
    z-index: 0;
    pointer-events: none;
    animation: lt-book-halo 2.3s ease-out infinite;
}

.lt-book-test .pd-book .reading .go:after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(84, 175, 255, .24);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 0 10px rgba(84, 175, 255, .18);
    z-index: 0;
    pointer-events: none;
    animation: lt-book-ring 2.3s ease-out infinite;
}

.lt-book-test .pd-book .reading .label {
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
    color: #2e86ee;
    text-shadow: 0 1px rgba(255, 255, 255, .7);
    white-space: nowrap;
    display: inline-block;
    transform: translateY(1px);
}

.lt-book-test .pdButton {
    --round-size: 40px;
    font-family: inherit;
    border: none;
    border-radius: 99px;
    outline: none;
}

.lt-book-test .pdButton.round {
    width: var(--round-size);
    height: var(--round-size);
    min-width: var(--round-size);
}

.lt-book-test .pdButton.primary {
    background:
        linear-gradient(180deg, #29a5ff 0%, #1189f7 52%, #0b74e8 100%);
    color: #fff;
    border: 1px solid rgba(163, 222, 255, .5);
    box-shadow:
        0 10px 20px rgba(20, 123, 233, .32),
        0 2px 8px rgba(20, 123, 233, .24),
        inset 0 1px 0 rgba(255, 255, 255, .38),
        inset 0 -2px 0 rgba(4, 85, 172, .22);
}

.lt-book-test .pd-book .reading .go .pdButton {
    font-size: 1.12em;
    width: var(--size);
    height: var(--size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
    animation: lt-book-bob 2.3s ease-in-out infinite;
}

.lt-book-test .pd-book .reading .go .pdButton .lt-book-arrow {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    display: inline-block;
    transform: translateX(0);
    transition: transform .28s ease;
    animation: lt-book-arrow-nudge 2.3s ease-in-out infinite;
}

.lt-book-test .pd-book:hover .reading .go .pdButton,
.lt-book-test .pd-book.open .reading .go .pdButton {
    transform: translateX(2px) scale(1.04);
    box-shadow:
        0 14px 26px rgba(20, 123, 233, .38),
        0 4px 12px rgba(20, 123, 233, .28),
        inset 0 1px 0 rgba(255, 255, 255, .42),
        inset 0 -2px 0 rgba(4, 85, 172, .24);
}

.lt-book-test .pd-book:hover .reading .go .pdButton .lt-book-arrow,
.lt-book-test .pd-book.open .reading .go .pdButton .lt-book-arrow {
    transform: translateX(2px);
}

body.night .lt-book-test .pd-book .reading {
    background: transparent;
    box-shadow: none;
}

body.night .lt-book-test .pd-book .reading .go:before {
    background:
        radial-gradient(circle, rgba(52, 163, 255, .48) 0%, rgba(52, 163, 255, .22) 38%, rgba(52, 163, 255, .10) 58%, rgba(52, 163, 255, .04) 71%, rgba(52, 163, 255, 0) 82%);
}

@keyframes lt-book-halo {
    0%, 100% {
        transform: scale(.92);
        opacity: .86;
    }
    55% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes lt-book-ring {
    0%, 100% {
        transform: scale(.98);
        opacity: .72;
    }
    55% {
        transform: scale(1.08);
        opacity: .96;
    }
}

@keyframes lt-book-bob {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
}

@keyframes lt-book-arrow-nudge {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

body.night .lt-book-test .pd-book .reading .label {
    color: #8fc2ff;
    text-shadow: 0 1px rgba(0, 0, 0, .28);
}

body.night .lt-book-test .pdButton.primary {
    background:
        linear-gradient(180deg, #2ba8ff 0%, #1189f7 52%, #0b6fe3 100%);
    color: #e7f0ff;
    border-color: rgba(170, 225, 255, .46);
    box-shadow:
        0 12px 24px rgba(10, 74, 150, .44),
        0 4px 12px rgba(20, 123, 233, .28),
        inset 0 1px 0 rgba(255, 255, 255, .30),
        inset 0 -2px 0 rgba(5, 58, 120, .26);
}

.lt-book-test .dock {
    position: relative;
    width: 100%;
    height: 20px;
    margin-bottom: 0;
}

.lt-book-test .lt-book-dock {
    margin: -30px 0 26px;
}

.lt-book-test .dock:after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    bottom: -5px;
    height: 5px;
    left: 6px;
    right: 6px;
    transform-origin: top;
    border-radius: 0 0 15px 15px / 0 0 5px 5px;
    background: linear-gradient(90deg, rgba(0, 24, 94, 0), rgba(255, 255, 255, .18) 29%, rgba(0, 24, 94, .08) 0, rgba(255, 255, 255, .30) 90%, rgba(0, 24, 94, 0)), linear-gradient(rgba(0, 24, 94, 0), rgba(0, 24, 94, .12), rgba(0, 24, 94, 0)) bottom / 100% 1px no-repeat;
    box-shadow: 0 -1px rgba(0, 24, 94, .12) inset;
}

.lt-book-test .dock-face {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(-90deg, rgba(255, 255, 255, .25), #fff 25%, rgba(255, 255, 255, .25)) bottom left / 100% 1px no-repeat, linear-gradient(color-mix(in srgb, #eef3fa, transparent 20%), transparent), radial-gradient(at 100% 100%, rgba(0, 24, 94, 0), rgba(0, 24, 94, .08) 50%, rgba(0, 24, 94, .03) 50%, rgba(0, 24, 94, .16)) 0% 100% / 100% 150%, linear-gradient(-90deg, rgba(0, 24, 94, .08), transparent);
    border-radius: 10px;
    box-shadow: 0 40px 30px -10px rgba(0, 24, 94, .20);
    transform-origin: bottom;
    transform: perspective(600px) rotateX(30deg);
}

.lt-book-test .dock-fill {
    height: 68px;
}
