:root {
    --blue: #1b2fe7;
    --blue-hover: #1b2fe7;
    --text: #1c2333;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f7f8fa;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}




.wrap {
    max-width: 720px;
    margin: 48px auto 80px;
    padding: 0 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}


.sub {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    transition: .15s;
    background: #fafbfc;
}

.dropzone:hover,
.dropzone.drag {
    border-color: var(--blue);
    background: #f0f4ff;
}

.dropzone .icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 10px;
}

.dropzone .title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.dropzone .hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 26px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.field input,
.field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 111, 224, .12);
}

.field .fhint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.renamebtn {
    width: 100%;
    margin-top: 26px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 0;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.renamebtn:hover {
    background: var(--blue-hover);
}

.renamebtn:disabled {
    background: #a9bdea;
    cursor: not-allowed;
}

.filelist {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fileitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
}

.fileitem .left {
    overflow: hidden;
}

.fileitem .oldname {
    font-weight: 600;
    font-size: 14.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fileitem .size {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 2px;
}

.fileitem .arrow {
    color: var(--blue);
    font-size: 18px;
    margin: 0 16px;
    flex-shrink: 0;
}

.fileitem .newname {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
    flex-shrink: 0;
    text-align: right;
}

.fileitem .removebtn {
    background: none;
    border: none;
    color: #b0b6c0;
    cursor: pointer;
    font-size: 16px;
    margin-left: 14px;
}

.fileitem .removebtn:hover {
    color: #e0524b;
}

.countline {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
}

.resultbar {
    display: none;
    margin-top: 20px;
    background: #eef7ee;
    border: 1px solid #bfe3bf;
    color: #1f6b1f;
    border-radius: 10px;
    padding: 13px 18px;
    font-size: 14px;
    align-items: center;
    justify-content: space-between;
}

.resultbar a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

input[type=file] {
    display: none;
}