.main-content {
    margin-left: 0;
    padding: 2rem;
}

.history-section {
    padding: 1rem 0;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 六列布局卡片 */
.history-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    gap: 1.5rem;
    align-items: stretch;
    /* 等高 */
    border: 1px solid transparent;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--light-gray);
}

/* 1. 封面 (固定宽) */
.h-col-cover {
    width: 90px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.h-col-cover img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* 2. 基本信息 (固定宽) */
.h-col-meta {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.h-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.h-meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.h-meta-item i {
    margin-top: 3px;
    width: 14px;
    text-align: center;
}

/* 3. 简介 (自适应) */
.h-col-intro {
    flex: 1;
    min-width: 150px;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* 限制行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

/* 4. 读后感 (自适应) */
.h-col-review {
    flex: 1;
    min-width: 150px;
    background: #FDFDFD;
    border: 1px dashed var(--light-gray);
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.h-review-empty {
    color: var(--mid-gray);
    font-style: italic;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 5. 时间 (固定宽) */
.h-col-dates {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    padding: 0 1rem;
    text-align: center;
}

.h-date-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.h-date-group div {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.h-date-group.returned div {
    color: var(--success-green);
}

/* 6. 按钮组 (固定宽) */
.h-col-actions {
    width: 110px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}

.h-btn {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

/* 收藏按钮 */
.btn-fav {
    background: white;
    border-color: var(--light-gray);
    color: var(--text-secondary);
}

.btn-fav:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-fav.is-favorited {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* 借阅按钮 */
.btn-borrow-h {
    background: var(--primary-blue);
    color: white;
}

.btn-borrow-h:hover {
    background: var(--secondary-blue);
}

.btn-borrow-h:disabled {
    background: var(--light-gray);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* 读后感按钮 */
.btn-review {
    background: var(--warning-yellow);
    color: white;
}

.btn-review:hover {
    background: #C08D27;
    /* 稍深一点的黄 */
}

/* 模态框通用样式 (复用 borrowed.css 中的定义，这里补充确保完整) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--light-gray);
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.btn-confirm {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel {
    background: white;
    border: 1px solid var(--light-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .history-card {
        flex-wrap: wrap;
    }

    .h-col-intro,
    .h-col-review {
        flex: 100%;
        order: 10;
        height: auto;
        margin-top: 1rem;
    }
}