﻿/* 主容器 */
.container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-flow: wrap;
}

/* 主要内容区域 - 阅读历史 */
.section_mark {
    margin-top: 10px;
    padding: 10px;
    width: 740px; /* 固定宽度，与侧边栏形成左右布局 */
    background: #ffffff;
}
#tempBookcase p.title {
    border-bottom: 1px dashed #666;
}
/* 标题样式 */
.title {
    display: flex;
    align-items: center;
    flex-flow: wrap;
    width: 100% !important;
    font-weight: 700;
    color: #555;
    font-size: 1.1em;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.jcc {
    justify-content: center;
    border: none;
    text-align: center;
    margin-bottom: 5px;
}

/* 核心修改：阅读历史列表 - 桌面端两列布局 */
#tempBookcase ul {
    display: flex;
    flex-flow: row wrap; /* 允许横向换行 */
    justify-content: space-between; /* 可选，使两列分布更均匀 */
}

#tempBookcase ul li {
    /* 修改宽度为略小于50%，考虑间距后实现两列 */
    width: calc(50% - 5px);
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc;
    /* 以下属性确保每个条目内部正确布局 */
    flex-direction: row;
}


/* 图片容器 */
.img_span {
    position: relative;
    margin-right: 15px;
    flex-shrink: 0; /* 防止图片在狭窄空间被压缩 */
}

.img_span a {
    width: 100px;
    height: 133px;
    overflow: hidden;
    display: block;
}

.section_mark img {
    width: 100px;
    height: 133px;
    transition: transform .4s ease-out;
}

.section_mark img:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 5px #888;
}

/* 书单项内容 */
.bookcase-items {
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
}

.bookcase-items>* {
    display: flex;
    align-items: center;
    flex-flow: wrap;
}
.bookcase-items p span{
    font-size: 12px;
    color: gray;
}
.bookcase-items p:first-child {
    font-weight: 700;
    font-size: 1.1em;
}

/* 按钮样式 */
.bookcase_btn {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #3e3d43;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    line-height: 20px;
    cursor: pointer;
    margin: 1px 0;
}

.red {
    color: #bf2c24;
}

.bookcase_btn.red {
    color: #bf2c24;
    border: 1px solid #bf2c24;
}

.bookcase_btn.gray {
    color: #666;
    border: 1px solid #666;
}

.bookcase_btn:hover {
    background: #bf2c24;
    border: 1px solid #bf2c24;
    color: #fff;
}

/* 侧边栏 - 猜你喜欢 */
aside {
    width: 310px;
    margin-top: 10px;
    margin-left: 10px;
    padding: 10px 10px 5px;
    background: #ffffff;
}

/* 猜你喜欢列表 */
.popular li {
    display: flex;
    justify-content: space-between;
    flex-flow: nowrap;
    height: 41px;
    border-bottom: 1px dotted #e6e6e6;
}

.popular li *:first-child {
    line-height: 41px;
    overflow: hidden;
    font-size: 1.1em;
}

.popular li *:last-child {
    line-height: 41px;
    overflow: hidden;
    text-align: right;
}

/* 灰色文字 */
.s_gray {
    color: #969ba3;
    font-size: 11px;
}

.gray {
    color: #666;
}

/* 字体图标 */
.fa {
    font-family: "Font Awesome 6 Free";
}

/* 响应式设计 - 平板 (宽度小于等于959px) */
@media screen and (max-width: 1119px) {
    .section_mark, aside {
        width: 100%; /* 平板下阅读历史区域占满宽度 */
        margin-left: 0;
    }
    /* 平板下，阅读历史依然可以保持两列 */
    #tempBookcase ul li {
        width: calc(50% - 5px);
    }
}

/* 响应式设计 - 手机 (宽度小于等于767px) */
@media screen and (max-width: 767px) {

    /* 手机端可适当缩小图片 */
    .section_mark img {
        width: 90px;
        height: 120px;
    }
    .img_span a {
        width: 90px;
        height: 120px;
    }
}

/* 响应式设计 - 小手机 (宽度小于等于479px) */
@media screen and (max-width: 479px) {
    .bookcase-items p:first-child {
        font-size: 1em; /* 小屏幕标题略小 */
    }
    /* 确保在小手机上也是单列 */
    #tempBookcase ul li {
        width: 100% !important;
    }
}