.book-card-item {
    --circle-size: 600px;
    --inset: 1px;
    --border: 12px;
    background-color: #141419;
    border-radius: var(--border);
    overflow: hidden;
    padding: 64px 16px;
}

.book-card-item .book-item {
    width: 112px;
    height: 158px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.book-card-item .b-wrapper {
    transform-origin: 0% 50%;
    position: absolute;
    width: 112px;
    height: 158px;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
    transition: 0.4s ease all;
    border-radius: 0 6px 6px 0;
}

.book-card-item .b-front {
    transform: perspective(1000px) rotateY(-30deg);
    box-shadow: inset 8px 0 8px rgba(255,255,255,0.2);
    filter: brightness(0.6);
}

.book-card-item .b-one {
    border-color: #62616F;
    transform: perspective(1000px) rotateY(-25deg);
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
}



.book-card-item .b-two {opacity: 0.16; transform: perspective(1000px) rotateY(-20deg);}
.book-card-item .b-three {opacity: 0.12; transform: perspective(1000px) rotateY(-15deg);}
.book-card-item .b-four {opacity: 0.08; transform: perspective(1000px) rotateY(-10deg);}
.book-card-item .b-back {opacity: 0.04; transform: perspective(1000px) rotateY(0deg);}

.book-card-item:hover .b-front {
    transform: perspective(1000px) rotateY(-70deg);
    filter: brightness(1);
}

.book-card-item:hover .b-one {transform: perspective(1000px) rotateY(-50deg);}
.book-card-item:hover .b-two {transform: perspective(1000px) rotateY(-40deg);}  
.book-card-item:hover .b-three {transform: perspective(1000px) rotateY(-30deg);}
.book-card-item:hover .b-four {transform: perspective(1000px) rotateY(-20deg);}

.book-meta span {
    margin: 0 6px;
}


.book-card-item .b-one .b-one-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: #A8A8B6;
    writing-mode: vertical-rl;
    padding: 8px;
}

.book-info {
    text-align: center;
    margin-top: 20px;
    opacity: 0.8;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.book-title {
    font-size: 16px;
    color: #E8E8F6;
    margin: 0 0 8px;
}

.book-meta {
    font-size: 12px;
    color: #A8A8B6;
}



.book-card-item:hover::before {
    opacity: 1;
}

/* 修复布局样式 */
.book-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
}

/* 优化响应式布局 */
@media (max-width: 768px) {
    .book-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .book-card-item .book-item {
        width: 96px;
        height: 136px;
    }

    .book-card-item .b-wrapper {
        width: 96px;
        height: 136px;
    }
}

/* 添加缺失的动画效果 */
.book-card-item .b-page {
    border:1px solid #838383;
}

.book-card-item:hover .book-info {
    opacity: 1;
    transform: translateY(0);
}

/* new card */
.card-list.card-list-category {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 16px;
}

.book-card-grid .visible {
    opacity: 1;
    transform: translateY(0);
}
.book-card-grid .load-pro {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.book-card-grid .item {
    --circle-size: 600px;
    border-radius: 12px;
    background-color: #141419;
    box-shadow: 0px 0px 8px 0px rgba(10, 10, 14, 0.4);
    align-content: start;
    flex-wrap: wrap;
}


.book-card-grid .item a {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.book-card-grid .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    word-wrap: break-word;
    opacity: .8;
    transition: opacity .2s;
    padding: 24px;
}
.book-card-grid .title-area {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.book-card-grid .title {
    display: flex;
    align-items: center;
    gap: 4px;
}
.book-card-grid .title .name-emoji {
    font-size: 16px;
    line-height: 28px;
    font-weight: 500;
}
.book-card-grid .title .name {
    font-size: 16px;
    line-height: 28px;
    font-weight: 500;
    background: linear-gradient(180deg, #E8E8F6 0%, rgba(232, 232, 246, 0.72) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-card-grid .tag-2b {
    color: #57AC84;
    background: rgba(87, 172, 132, 0.1);
}

.book-card-grid .tag {
    font-size: 12px;
    line-height: 100%;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}
.book-card-grid .desc {
    width: 100%;
    font-size: 14px;
    /*line-height: 24px;*/
    color: #A8A8B6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}
.book-card-grid .cover {
    position: relative;
    will-change: transform, filter;
    margin-bottom: -16px;
    mask-image: linear-gradient(180deg, transparent, #141419 0%, #141419 70%, transparent);
}
.book-card-grid .item a .cover .cover img {
    width: 100%;
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 裁剪图片以适应容器 */
    filter: brightness(0.6);
    transition: filter 0.2s, transform 0.4s;
}
.book-card-grid .item a .cover .img-bg {
    position: absolute;
    top: 0;
    z-index: -1;
}

.book-card-grid .cover img {
    width: 100%;
    height: 380px; /* 固定高度 */
    object-fit: cover; /* 裁剪图片以适应容器 */
    filter: brightness(0.6);
    border-radius: 0.5rem;
    transition: filter 0.2s, transform 0.4s;
}
.book-card-grid .item a:hover .cover img {
    transform: translateY(-16px);
    filter: brightness(1);
    transition: filter 0.2s, transform 0.4s;
        border-radius: 0.5rem;
}
.book-card-grid .item a:hover .text {
    opacity: .08 !important;
    transition: opacity .4s;
}
.book-card-grid .item a:hover .cover .img-bg {
    transform: translateY(-4px);
    filter: brightness(1);
    transition: filter 0.2s, transform 0.4s;
        border-radius: 0.5rem;
}

.new-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.new-card:hover {
    transform: translateY(-5px);
}

.new-card .card-header {
    position: relative;
}

.new-card .card-img {
    width: 100%;
    height: auto;
}

.new-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-card:hover .card-overlay {
    opacity: 1;
}

.new-card .bookmark,
.new-card .rating,
.new-card .play {
    color: #fff;
}

.new-card .card-body {
    padding: 15px;
}

.new-card .card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.new-card .card-info {
    font-size: 0.9em;
    color: #666;
}

/* 卡片基础样式 */
.card-container {
    background-color: #0F1C2E;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
        margin-bottom: 13px;
        margin-top: 20px;
}



/* 卡片内部布局 */
.card-container a {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

/* 卡片图片样式 */
.card-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-bottom: -45px;
    margin-right: -30px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: opacity 0.4s;
    position: absolute;
    bottom: 16px;
    right: 16px;
        transform: translateY(0);
    transition: transform 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

/* 信息区域样式 */
.card-info {
    flex: 1;
    min-width: 0;
margin-left: 15px;

}


.card-container:hover .card-image {
    opacity: 1;
}

.card-container:hover .card-title {
    color: #fff;
}

.card-container:hover .icon-arrow {
    opacity: 1;
}


.card-image::after {
    content: '';
    position: absolute;
width: 200px;
    height: 200px;
    filter: blur(30px);
    background: inherit;
    background-size: 100%;
}

.title-hi {
    font-size: 22px;
    font-weight: 700;
    /*-webkit-text-fill-color: transparent;*/
    background: linear-gradient(rgb(232, 232, 246) 0%, rgba(232, 232, 246, 0.72) 100%) text;
}

.card-title {
    --bg: linear-gradient(90deg, #A29CD3 0%, #E8BFAC 100%);
    position: relative;
    background: var(--bg);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

