/* PDF图书阅读器 - 移动端底部菜单面板样式 */

:root {
    --sheet-bg: #f8f9fa;
    --sheet-card-bg: #ffffff;
    --sheet-icon-bg: #f1f3f5;
    --sheet-icon-color: #495057;
    --switch-bg: #e9ecef;
}

.mobile-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 4999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background-color: var(--sheet-bg);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.mobile-sheet.show {
    transform: translateY(0);
}

.mobile-sheet-handle {
    padding: 8px;
    display: flex;
    justify-content: center;
}
.mobile-sheet-handle .bar {
    width: 40px;
    height: 5px;
    background-color: var(--border-color);
    border-radius: 3px;
}

.mobile-sheet-content {
    overflow-y: auto;
    padding: 0 16px 20px;
}

.sheet-card {
    background-color: var(--sheet-card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sheet-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}
#sheetPreviewCanvas {
    width: 70px;
    height: 99px; /* 70 * 1.414 */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
    background-color: #e9ecef;
}
.sheet-preview-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}
.sheet-preview-info p {
    margin: 0;
    font-size: 14px;
    color: var(--secondary-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sheet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
}
.sheet-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-text);
    cursor: pointer;
}
.sheet-action-item .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background-color: var(--sheet-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sheet-action-item .material-icons {
    color: var(--sheet-icon-color);
    font-size: 26px;
}

.sheet-menu-list {
    display: flex;
    flex-direction: column;
}
.sheet-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}
.sheet-menu-item:last-child {
    border-bottom: none;
}
.sheet-menu-item .label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}
.sheet-menu-item .label .material-icons {
    color: var(--sheet-icon-color);
}
.sheet-menu-item .arrow {
    color: var(--secondary-text);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--switch-bg);
  transition: .4s;
  border-radius: 28px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider {
  background-color: var(--accent-color);
}
input:checked + .slider:before {
  transform: translateX(22px);
} 