* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 

.recommend-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.carousel-container {
	width: 930px;  
    flex: 1;
    background: #fff;
    border-radius: 8px; 
   display: flex;
}

.carousel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    border-left: 4px solid #ed424b;
}

.carousel-title h2 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
}

.carousel {
	width: 362px;
    position: relative;
    height: 171px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 82px;
    height:112px;
    transition: all 0.5s ease;
    cursor: pointer;
    transform-origin: center center -200px;
    backface-visibility: hidden;
}

/* 轮播项样式 */
.carousel-item .book-cover {
    position: relative;
    width: 82px;
    height:112px;
    /* background: #fff; */
    border-radius: 4px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.2); */
    transform-style: preserve-3d;
}

.carousel-item img {
   /* width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px; */
}

.carousel-item .book-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(20px);
}

.carousel-item:hover .book-info {
    opacity: 1;
}

.book-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.book-info .author {
    font-size: 14px;
    margin-bottom: 6px;
    /* opacity: 0.9; */
}

.book-info .desc {
    font-size: 12px;
    line-height: 1.4;
    /* opacity: 0.8; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 轮播项位置 */
.carousel-item:nth-child(1) { 
	
    transform: rotateY(0deg) translateZ(200px) translateX(-200px);
    /* opacity: 0.6; */
    z-index: 1;
}

.carousel-item:nth-child(2) { 
    transform: rotateY(0deg) translateZ(200px) translateX(-55px);
    /* opacity: 0.8; */
    z-index: 2;
}

.carousel-item:nth-child(3) { 
    transform: rotateY(0deg) translateZ(200px);
    opacity: 1;
    z-index: 3;
}

.carousel-item:nth-child(4) { 
    transform: rotateY(0deg) translateZ(200px) translateX(55px);
    /* opacity: 0.8; */
    z-index: 2;
}

.carousel-item:nth-child(5) { 
    transform: rotateY(0deg) translateZ(200px) translateX(200px);
    /* opacity: 0.6; */
    z-index: 1;
}

/* 活动项样式 */
.carousel-item.active {
    transform: rotateY(0deg) translateZ(200px);
    opacity: 1;
    z-index: 3;
}
.carousel-item.active img{
	width: 82px;
	height: 112px;
	margin-top: 0;
}
.carousel-item.prev-2 {
    transform: rotateY(0deg) translateZ(200px) translateX(-100px);
    /* opacity: 0.6; */
    z-index: 1;
}
.carousel-item img{
	width: 76px;
	height: 96px;
	margin-top: 14px;
}
.carousel-item.prev-1 {
    transform: rotateY(0deg) translateZ(200px) translateX(-55px);
    /* opacity: 0.8; */
    z-index: 2;
}

.carousel-item.next-1 {
    transform: rotateY(0deg) translateZ(200px) translateX(55px);
    /* opacity: 0.8; */
    z-index: 2;
}

.carousel-item.next-2 {
    transform: rotateY(0deg) translateZ(200px) translateX(100px);
    /* opacity: 0.6; */
    z-index: 1;
}

/* 控制按钮样式 */
.carousel-controls {
    display: flex;
    gap: 10px;
}

.prev-btn,
.next-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f1f2;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: #ed424b;
    color: #fff;
}

/* 文字说明区域样式 */
.content-container {
    width: 546px; 
     margin-left: 63px; 
}

.content-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.content-item.active {
    display: block;
    opacity: 1;
}
.content-container-title{
	width: 100%;
	height: 45px;
	line-height: 45px;
	display: flex;
}
.content-container-title h2 {
   font-weight: 700;
   font-size: 18px;
   color: #2E2E2E;
}
.content-container-title  span{
	font-weight: 500;
	font-size: 12px;
	color: #5D5D5D;
	margin-left: 21px;
}
.content-item a{
	width: 96px;
	height: 28px;
	display: block;
	line-height: 28px;
	text-align: center;
	border-radius: 30px;
	background: #BF2C24;
	color: #fff;
	font-size: 14px;
}
.book-tags {
    margin-bottom: 15px;
}

.book-tags .tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f6f7f9;
    color: #666;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.book-intro {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat .num {
    display: block;
    font-size: 18px;
    color: #ed424b;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat .label {
    font-size: 12px;
    color: #999;
} 