body {
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #f5f5f5;
}
.pdf-reader-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.pdf-toolbar {
    display: flex;
    align-items: center;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    gap: 8px;
}
.pdf-toolbar button {
    background: #444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.pdf-toolbar button:hover {
    background: #666;
}
.pdf-toolbar input[type=range] {
    width: 120px;
}
.pdf-main {
    flex: 1;
    display: flex;
    min-height: 0;
}
.pdf-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-width: 120px;
    max-width: 300px;
}
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.tab-btn {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: border-color 0.2s, background 0.2s;
}
.tab-btn.active {
    border-bottom: 2px solid #007bff;
    background: #f0f8ff;
}
.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.tab-content.active {
    display: block;
}
#thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#thumbnails canvas {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    background: #fafafa;
}
#bookmarkList {
    list-style: none;
    padding: 0;
    margin: 0;
}
#bookmarkList li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.pdf-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    min-width: 0;
    overflow: auto;
}
#pdfCanvas {
    max-width: 100%;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* 收藏夹卡片列表样式 */
.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px;
    justify-content: flex-start;
    align-items: flex-start;
}
.favorite-card {
    width: 180px;
    min-height: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #eee;
    padding: 18px 8px;
    text-align: center;
}
.favorite-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.16);
    transform: translateY(-2px) scale(1.03);
    border-color: #007bff;
}
.favorite-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
    word-break: break-all;
}
.favorite-card-url {
    font-size: 12px;
    color: #888;
    word-break: break-all;
}
.favorites-empty {
    color: #888;
    font-size: 18px;
    text-align: center;
    margin: 60px auto;
}
@media (max-width: 900px) {
    .pdf-sidebar {
        width: 120px;
    }
}
@media (max-width: 600px) {
    .pdf-main {
        flex-direction: column;
    }
    .pdf-sidebar {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-direction: row;
        min-width: 0;
    }
    .sidebar-tabs {
        flex-direction: column;
        width: 60px;
        border-bottom: none;
        border-right: 1px solid #eee;
    }
    .tab-btn {
        border-bottom: none;
        border-right: 2px solid transparent;
    }
    .tab-btn.active {
        border-right: 2px solid #007bff;
        background: #f0f8ff;
    }
    .tab-content {
        padding: 4px;
    }
    .pdf-viewer {
        min-height: 300px;
    }
} 