/*body {*/
/*    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*    margin: 0;*/
/*    padding: 20px;*/
/*    min-height: 100vh;*/
/*}*/

.wrapper {
    max-width: 1200px;
    margin: 15px auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    /*background: #f8f9fa;*/
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.form-label {
    width: 120px;
    font-weight: bold;
    color: #495057;
    font-size: 16px;
}

.form-field {
    flex: 1;
}

.form-field label {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.form-field input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

/* 美化单选按钮 */
.radio-container {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    position: relative;
}

.radio-container input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: "";
    position: absolute;
    display: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #667eea;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-container input[type="radio"]:checked ~ .radio-custom {
    border-color: #667eea;
}

.radio-container input[type="radio"]:checked ~ .radio-custom::after {
    display: block;
}

.radio-container:hover .radio-custom {
    border-color: #764ba2;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.radio-label {
    font-size: 16px;
    color: #495057;
    cursor: pointer;
}

.btn {
    color: #333;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 25px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    background-color: #ced4da;
    transform: translateY(0);
}

.btn.btn-choose {
    padding: 15px 30px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn.btn-choose:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn.btn-choose:active {
    transform: translateY(0);
}

.btn-add-file {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.btn-add-file .btn {
    padding: 12px 23px;
}

.btn-add-file input[type="file"] {
    position: absolute;
    top: -10px;
    left: -10px;
    bottom: -10px;
    z-index: 3;
    cursor: pointer;
    font-size: 99px;
    opacity: 0;
}

.list-files {
    margin: 0 0 20px 0;
    display: block;
    list-style: none;
    padding: 0;
}

.list-files li {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: move; /* 添加拖拽手型 */
}

.list-files li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.list-files li.dragging {
    opacity: 0.5;
    background: #f0f8ff;
}

.list-files li.drag-over {
    border-top: 2px solid #667eea;
}

.preview-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.text-filename {
    flex: 1;
    word-break: break-word;
    font-size: 14px;
    color: #495057;
}

.icon-action {
    width: 32px;
    height: 32px;
    margin-left: 10px;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-action {
    background-color: #03a9f4;
    /*transform: scale(1.1);*/
}

.icon-remove {
    background-color: #f44336;
}

.icon-remove:before,
.icon-remove:after {
    content: "\20";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    margin-top: -1px;
    margin-left: -8px;
    background-color: #ffffff;
}

.icon-remove:before {
    transform: rotate(45deg);
}

.icon-remove:after {
    transform: rotate(-45deg);
}

.icon-move:hover {
    background-color: #4caf50;
}

.icon-move:before {
    content: "\20";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-color: #ffffff;
    transform: rotate(-45deg);
    margin-left: -6px;
}

.icon-move-up:before {
    margin-top: -3px;
    border-width: 2px 2px 0 0;
}

.icon-move-down:before {
    margin-top: -9px;
    border-width: 0 0 2px 2px;
}

#btn-combine {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#btn-combine:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#btn-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
}

#btn-reset:hover {
    background: #5a6268;
}

.form-field-result {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.form-field-result a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-field-result a:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
.form-field-result a[target="_blank"] {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.form-field-result a[target="_blank"]:hover {
    background: #218838;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}
.form-field-result img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.droper {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 99999;
    outline: 10px #000 solid;
    border: 3px #0f87dc dashed;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, .35);
    display: none;
    text-align: center;
}

.droper:before {
    content: attr(data-text);
    display: block;
    font-style: italic;
    font-size: 32px;
    color: #0f87dc;
    width: 400px;
    height: 60px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -200px;
    font-weight: bold;
}

.droper.active {
    display: block;
}

.title {
    display: none;
}

@media (max-width: 768px) {
    .wrapper {
        padding: 15px;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-field {
        width: 100%;
    }

    .form-field label:not(.radio-container) {
        display: block;
        margin-bottom: 10px;
    }

    @media (max-width: 768px) {
        .radio-container {
            margin-bottom: 15px;
        }

        .radio-label {
            font-size: 16px;
        }

        .radio-custom {
            width: 22px;
            height: 22px;
        }

        .radio-custom::after {
            width: 14px;
            height: 14px;
        }
    }

    .list-files li {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-image {
        margin-bottom: 10px;
    }

    .text-filename {
        margin-bottom: 10px;
        width: 100%;
    }

    .icon-actions {
        display: flex;
        width: 100%;
        justify-content: flex-end;
    }
}
