* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; color: #222; background: #f7f7f9; }
.container { max-width: 980px; margin: 24px auto; padding: 16px; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
h1 { margin: 0 0 16px; font-size: 22px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.controls { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.controls select, .controls button { padding: 8px 12px; font-size: 14px; }
.controls button[disabled] { opacity: 0.5; cursor: not-allowed; }
.status { padding: 8px 12px; border-radius: 6px; background: #f1f3f5; color: #555; margin: 8px 0 16px; }
.status.success { background: #e6ffed; color: #256a39; }
.status.error { background: #ffecec; color: #8a2020; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.actions button { padding: 6px 10px; font-size: 13px; }
#paginationBar.pagination { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
#paginationBar select, #paginationBar input { padding: 6px 8px; font-size: 13px; border: 1px solid #ddd; border-radius: 6px; }
#paginationBar #pageInfo { font-size: 13px; color: #555; }
#paginationBar .page-list { display: flex; flex-wrap: wrap; gap: 6px; }
.page-item { padding: 6px 10px; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #fff; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.page-item:hover { background: #f1f3f5; }
.page-item.active { background: #e6ffed; color: #256a39; border-color: #b6e3c6; }
#videoTable table { width: 100%; border-collapse: collapse; }
#videoTable th, #videoTable td { border-bottom: 1px solid #eee; padding: 8px; font-size: 13px; }
#imageGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.image-item { border: 1px solid #eee; border-radius: 6px; padding: 6px; background: #fafafa; }
.image-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; display: block; }
.image-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.history { margin-top: 24px; }
.history-list { max-height: 220px; overflow: auto; border: 1px solid #eee; border-radius: 6px; padding: 8px; background: #fafafa; font-size: 13px; }
.history-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #eee; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; gap: 16px; }
.lightbox img { max-width: 80vw; max-height: 80vh; border-radius: 8px; }
.lightbox button { padding: 8px 12px; }
.hidden { display: none !important; }
#toast { position: fixed; right: 16px; top: 16px; padding: 10px 14px; border-radius: 8px; background: #333; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,0.18); font-size: 13px; z-index: 9999; }
#toast.success { background: #256a39; }
#toast.error { background: #8a2020; }
#videoTable table { width: 100%; border-collapse: collapse; }
#videoTable th, #videoTable td { border-bottom: 1px solid #eee; padding: 8px; font-size: 13px; }
#imageGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.image-item { border: 1px solid #eee; border-radius: 6px; padding: 6px; background: #fafafa; }
.image-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; display: block; }
.image-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.history { margin-top: 24px; }
.history-list { max-height: 220px; overflow: auto; border: 1px solid #eee; border-radius: 6px; padding: 8px; background: #fafafa; font-size: 13px; }
.history-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #eee; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; gap: 16px; }
.lightbox img { max-width: 80vw; max-height: 80vh; border-radius: 8px; }
.lightbox button { padding: 8px 12px; }
