/* 书架网格 */
.shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 卡片样式 */
.shelf-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 180px;
}

.card-cover {
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; 
    background: #eee;
}

.card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    flex-grow: 1;
    min-width: 0; 
}

.card-title { font-size: 1.1em; font-weight: bold; margin-bottom: 5px; color: #2c3e50; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-author { font-size: 0.9em; color: #7f8c8d; margin-bottom: 5px; }
.card-progress { font-size: 0.85em; color: #e67e22; margin-bottom: 10px; }

/* 书签网格 */
.mark-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.mark-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 210px;
}

.btn-row { display: flex; gap: 10px; }

.btn-sm {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    flex: 1;
    padding: 6px 0;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9em;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
}
.btn-read { background-color: #2c3e50; }
.btn-read:hover { background-color: #34495e; }
.btn-remove { background-color: #e74c3c; }
.btn-remove:hover { background-color: #c0392b; }

@media (max-width: 900px) {
    .shelf-grid { grid-template-columns: 2fr; } 
    .mark-grid { grid-template-columns: 3fr; }
}
@media (max-width: 600px) {
    .shelf-grid { grid-template-columns: 1fr; } 
    .mark-grid { grid-template-columns: 2fr; }
}