/* PDF拆分工具 */
.pdfs-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.pdfs-panel { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 20px; }
.pdfs-section { margin-bottom: 20px; }
.pdfs-section:last-child { margin-bottom: 0; }
.pdfs-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .95rem; margin: 0 0 12px; }
.pdfs-section h3 > span { display: inline-flex; align-items: center; gap: 6px; }
.pdfs-section h3 i { color: var(--accent); }
.pdfs-section h3 .btn { flex-shrink: 0; }

.pdfs-upload { border: 2px dashed var(--rule); border-radius: var(--radius-md); padding: 30px 16px; text-align: center; cursor: pointer; transition: all .2s ease; background: var(--bg2); }
.pdfs-upload:hover, .pdfs-upload.dragover { border-color: var(--accent); background: var(--accent-soft); }
.pdfs-upload i:first-child { font-size: 2rem; color: var(--accent); }
.pdfs-upload p { margin: 10px 0 6px; font-weight: 600; }
.pdfs-hint { font-size: .8rem; color: var(--muted); }

.pdfs-fileinfo { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.pdfs-fileinfo span { font-size: .82rem; color: var(--muted); word-break: break-all; }
.pdfs-fileinfo span:first-child { color: var(--ink); font-weight: 600; }
#btnChange { margin-top: 10px; }

.pdfs-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.pdfs-tab { flex: 1; padding: 9px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--muted); font-size: .85rem; cursor: pointer; transition: all .15s ease; }
.pdfs-tab:hover { border-color: var(--accent); color: var(--accent); }
.pdfs-tab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pdfs-panel-fn { display: none; }
.pdfs-panel-fn.active { display: block; }

.pdfs-formgroup { margin-bottom: 12px; }
.pdfs-formgroup > label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pdfs-formgroup input[type="range"] { width: 100%; accent-color: var(--accent); }
.pdfs-formgroup input[type="text"] { width: 100%; padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-size: .9rem; box-sizing: border-box; }
.pdfs-formgroup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pdfs-hint2 { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }

.pdfs-preview { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px; font-size: .82rem; color: var(--muted); max-height: 220px; overflow: auto; line-height: 1.7; }
.pdfs-preview strong { color: var(--accent); }

.pdfs-actions { display: flex; gap: 10px; }
.pdfs-actions .btn { flex: 1; justify-content: center; }
.pdfs-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

.pdfs-placeholder { text-align: center; color: var(--muted); padding: 80px 0; }
.pdfs-placeholder i { font-size: 3rem; color: var(--accent); display: block; margin-bottom: 12px; opacity: .7; }

.pdfs-resultlist { display: flex; flex-direction: column; gap: 8px; }
.pdfs-resultitem { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 14px; }
.pdfs-resultinfo { flex: 1; min-width: 0; }
.pdfs-resultname { display: block; font-size: .85rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfs-resultrange { display: block; font-size: .76rem; color: var(--muted); }
.pdfs-resultpages { font-size: .82rem; color: var(--muted); flex-shrink: 0; }

@media (max-width: 900px) {
  .pdfs-grid { grid-template-columns: 1fr; }
}

.pdfs-loading { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 999; }
.pdfs-loading-box { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 22px 30px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: .9rem; color: var(--ink); }
.pdfs-loading-box i { color: var(--accent); font-size: 1.3rem; animation: pdfs-spin 1s linear infinite; }
@keyframes pdfs-spin { to { transform: rotate(360deg); } }