* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #0d1117;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}
.container { max-width: 1200px; margin: 0 auto; }
h1 {
    text-align: center;
    background: linear-gradient(135deg, #F9DF8F, #C9A227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    font-size: 28px;
}
.card {
    background: rgba(22,27,34,0.85);
    border: 1px solid rgba(245,208,111,0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.input-row label { color: #D4AF37; font-size: 14px; white-space: nowrap; }
.input-row input, .input-row select {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(245,208,111,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #F9DF8F;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-row input:focus, .input-row select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
}
.input-row input { flex: 1; min-width: 200px; }
.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #F9DF8F, #C9A227);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover { box-shadow: 0 0 15px rgba(212,175,55,0.5); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.progress-wrap { margin-top: 16px; display: none; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: #aaa; }
.progress-bar {
    width: 100%; height: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 5px; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #F9DF8F, #C9A227);
    border-radius: 5px;
    transition: width 0.3s;
}
.stats {
    display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap;
}
.stat-item {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(245,208,111,0.2);
}
.stat-num { color: #F9DF8F; font-size: 20px; font-weight: bold; }
.stat-label { color: #888; font-size: 12px; }
.table-wrap {
    max-height: 600px; overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(245,208,111,0.2);
}
.table-wrap::-webkit-scrollbar { width: 6px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 3px; }
.table-wrap::-webkit-scrollbar-thumb { background: linear-gradient(#F9DF8F,#C9A227); border-radius: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
    background: #1a1f2e;
    color: #F9DF8F;
    padding: 10px 12px;
    text-align: left;
    position: sticky; top: 0;
    z-index: 1;
    border-bottom: 2px solid rgba(212,175,55,0.3);
}
td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); word-break: break-all; }
tr:hover td { background: rgba(212,175,55,0.08); }
.idx { color: #888; width: 50px; }
.url-text { color: #e0e0e0; }
.copy-btn {
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.4);
    color: #F9DF8F;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.copy-btn:hover { background: rgba(212,175,55,0.4); }
.empty { text-align: center; color: #666; padding: 40px; }
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(212,175,55,0.9); color: #1a1a1a;
    padding: 10px 24px; border-radius: 8px;
    font-weight: bold; z-index: 9999;
    display: none;
}
/* Checkbox */
.cb {
    width: 18px; height: 18px;
    accent-color: #C9A227;
    cursor: pointer;
    vertical-align: middle;
}
.cb:hover { box-shadow: 0 0 6px rgba(212,175,55,0.5); }
.batch-bar {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(245,208,111,0.2);
    display: flex; gap: 10px; align-items: center;
}
.batch-bar .sel-count { color: #F9DF8F; font-size: 13px; }
@media (max-width: 768px) {
    .input-row { flex-direction: column; align-items: stretch; }
    .stats { justify-content: center; }
}