:root{color-scheme:light;--ink:#172033;--muted:#667085;--line:#dce2ea;--bg:#f6f8fb;--accent:#315ee7;--accent2:#eaf0ff;--white:#fff}
*{box-sizing:border-box}
body{margin:0;background:#020617;color:#f8fafc;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
main{max-width:1120px;margin:0 auto;padding:42px 20px 56px}
.eyebrow{font-size:12px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#818cf8}
h1{font-size:clamp(26px,4vw,40px);line-height:1.1;letter-spacing:-.04em;margin:10px 0 12px;color:#fff}
.intro{max-width:720px;color:#94a3b8;margin:0 0 20px;font-size:14px}
.privacy{display:inline-flex;align-items:center;gap:8px;border:1px solid #1e293b;background:#0f172a;border-radius:999px;padding:7px 12px;font-size:13px;color:#cbd5e1;margin-bottom:24px}
.privacy:before{content:"";width:8px;height:8px;background:#10b981;border-radius:50%}

.upload-panel{background:#0f172a;border:1px dashed #334155;border-radius:16px;padding:18px;margin:0 0 20px;transition:all 0.2s ease;}
.upload-panel.drag-over {
    border-color: #6366f1;
    background: #1e1b4b;
}
.upload-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.upload-copy{min-width:220px;flex:1}
.upload-copy strong{display:block;font-size:14px;color:#fff}
.upload-copy p{margin:4px 0 0;color:#94a3b8;font-size:12px}
.file-status{font-size:12px;color:#94a3b8;margin-top:10px;min-height:18px}

.section-label{font-size:13px;font-weight:700;color:#fff}
.hint{font-size:12px;color:#94a3b8;line-height:1.4}

.panel{background:#0f172a;border:1px solid #1e293b;border-radius:16px;overflow:hidden;min-width:0}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border-bottom:1px solid #1e293b;background:#090d16}
.panel-head strong{font-size:14px;color:#fff}
.count{font-size:12px;color:#94a3b8}

.btn{border:1px solid #334155;background:#1e293b;color:#fff;border-radius:10px;padding:10px 15px;font-size:14px;font-weight:700;cursor:pointer}
.btn.primary{background:#4f46e5;border-color:#4f46e5;color:#fff}
.btn.primary:hover{background:#4338ca}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn:hover:not(:disabled){filter:brightness(1.1)}

.foot{margin-top:32px;color:#64748b;font-size:12px;text-align:center}

/* 图片列表项与独立微调面板 */
.img-card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 12px;
}
.img-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.img-thumb {
    width: 56px;
    height: 56px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.img-info {
    flex: 1;
    min-width: 0;
}
.img-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.img-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* 单张图片独立微调抽屉 */
.fine-tune-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1e293b;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
}
.fine-tune-box input[type="range"] {
    width: 100%;
    accent-color: #6366f1;
    margin-top: 2px;
}

@media(max-width:760px){
    main{padding:28px 14px}
    div[style*="grid-template-columns: 1fr 1fr"]{grid-template-columns: 1fr !important;}
}

.custom-file-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #4f46e5;
    transition: filter 0.2s;
}
.custom-file-upload:hover {
    filter: brightness(1.1);
}
.file-input-hidden {
    display: none;
}