/* 截图功能样式 */
.screenshot-section {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.screenshot-section.show {
    display: block;
}

#screenshot-btn {
    padding: 14px 35px;
    background: #d4d4d4;
        /* background: linear-gradient(54deg, #9e5151 0%, #297692 100%); */
    color: #5e5e5e;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(77, 77, 77, 0.3);
}

#screenshot-btn:hover {
    color: #fff;
    background: #07815a;
        /* background: linear-gradient(54deg, #676161 0%, #297692 100%); */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 82, 82, 0.4);
}

#screenshot-btn:disabled {
     color: #fff;
    background: #119955;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#screenshot-status {
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
    min-height: 20px;
}

#screenshot-status.error {
    color: #ff4d4f;
}

#screenshot-status.success {
    color: #52c41a;
}

/* 分批截图设置面板 */
.screenshot-batch-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.screenshot-batch-panel.show {
    display: flex;
}

.screenshot-batch-panel .batch-panel-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 24px;
    width: 90%;
    max-width: 791px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    color: #333;
}

.screenshot-batch-panel .batch-panel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.screenshot-batch-panel .batch-info {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 8px;
}

.screenshot-batch-panel .batch-info strong {
    color: #e67e00;
    font-size: 20px;
    font-weight: 700;
}

.screenshot-batch-panel .batch-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    background: #f8f9fa;
    padding: 10px 16px;
    border-radius: 8px;
}

.screenshot-batch-panel .batch-input-row label {
    font-size: 15px;
    color: #555;
    white-space: nowrap;
}

.screenshot-batch-panel .batch-input-row input {
    width: 68px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.screenshot-batch-panel .batch-input-row input[type="range"] {
    width: 160px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.screenshot-batch-panel .batch-input-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #07815a;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.screenshot-batch-panel .batch-input-row input[type="range"]::-webkit-slider-thumb:hover {
    background: #09a070;
}

.screenshot-batch-panel .batch-input-row #quality-value {
    font-size: 14px;
    font-weight: 700;
    color: #07815a;
    min-width: 42px;
    text-align: center;
}

.screenshot-batch-panel .batch-preview {
    background: #fafafa;
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 16px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.screenshot-batch-panel .batch-preview table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.screenshot-batch-panel .batch-preview th {
    background: #f0f0f0;
    padding: 10px 8px;
    text-align: center;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.screenshot-batch-panel .batch-preview td {
    padding: 9px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 13px;
}

.screenshot-batch-panel .batch-preview tr:hover td {
    background: #f5f7fa;
}

.screenshot-batch-panel .batch-preview td input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #07815a;
}

.screenshot-batch-panel .batch-preview td input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.screenshot-batch-panel .batch-preview tr.current-batch {
    background: #fff8e1;
}

.screenshot-batch-panel .batch-preview tr.current-batch td {
    font-weight: 600;
}

.screenshot-batch-panel .batch-preview tr.done-batch {
    opacity: 0.55;
}

.screenshot-batch-panel .batch-preview tr.done-batch td {
    color: #52c41a;
}

.screenshot-batch-panel .batch-btn-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.screenshot-batch-panel .batch-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-batch-panel .batch-btn-confirm {
    background: #07815a;
    color: #fff;
}

.screenshot-batch-panel .batch-btn-confirm:hover {
    background: #09a070;
}

.screenshot-batch-panel .batch-btn-confirm:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

.screenshot-batch-panel .batch-btn-cancel {
    background: #eee;
    color: #666;
    border: 1px solid #ddd;
}

.screenshot-batch-panel .batch-btn-cancel:hover {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

.screenshot-batch-panel .batch-btn-next {
    background: #e67e00;
    color: #fff;
}

.screenshot-batch-panel .batch-btn-next:hover {
    background: #f0932b;
}

.screenshot-batch-panel .batch-btn-next:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

.screenshot-batch-panel .batch-progress {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    min-height: 20px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.screenshot-batch-panel .batch-progress.success {
    color: #52c41a;
    background: #f0fdf4;
    border: 1px solid #b7ebc8;
}

.screenshot-batch-panel .batch-progress.error {
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
}

/* 自定义滚动条 */
.screenshot-batch-panel .batch-preview::-webkit-scrollbar,
.screenshot-batch-panel .batch-panel-content::-webkit-scrollbar {
    width: 5px;
}

.screenshot-batch-panel .batch-preview::-webkit-scrollbar-track,
.screenshot-batch-panel .batch-panel-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.screenshot-batch-panel .batch-preview::-webkit-scrollbar-thumb,
.screenshot-batch-panel .batch-panel-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.screenshot-batch-panel .batch-preview::-webkit-scrollbar-thumb:hover,
.screenshot-batch-panel .batch-panel-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
