html,
body {
    margin: 0;
    padding: 0;
}

html {
    background-color: #1a1a2e;
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

body,
button {
    font-size: 16px;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

:root {
    --primary-color: #3a7bd5;
    --secondary-color: #00d2ff;
    --text-color: #fff;
    --bg-color: #1a1a2e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
}

body {
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    transition: all 0.3s ease;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .wrapper {
        padding: 20px;
        margin: 0 10px;
    }
    
    .form-group .form-label {
        float: none;
        width: auto;
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .form-group .form-field {
        margin-left: 0;
    }
}

html,
body,
body * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-user-drag: none;
    user-select: none;
}

.droper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 99999;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: none;
    transition: all 0.3s ease;
}

.droper:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

.droper:before {
    content: attr(data-text);
    display: block;
    font-style: italic;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    width: 300px;
    height: 50px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -150px;
}

.droper.active {
    display: block;
}

.wrapper {
    padding: 30px;
}

.form-field-result {
    padding-bottom: 120px;
}

.form-field-result a {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.form-field-result img {
    max-width: 100%;
    display: inline-block;
}

.title {
    display: none;
}

.form-group {
    clear: both;
    padding-bottom: 15px;
}

.form-group:after {
    content: "\20";
    clear: both;
    display: block;
    width: 0;
    height: 0;
}

.form-group .form-label,
.form-group .form-field {
    min-height: 28px;
}

.form-group .form-label {
    float: left;
    width: 60px;
    padding-right: 10px;
    margin-top: 13px;
}

.form-group .form-field {
    margin-left: 60px;
}

.form-group .form-field label {
    display: inline-flex;
    align-items: center;
    word-break: keep-all;
    white-space: nowrap;
    padding: 8px 12px;
    margin: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group .form-field label:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.form-group .form-field input[type="number"] {
    padding: 8px 12px;
    margin: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
}

.form-group .form-field input[type="number"]:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.form-group .form-field input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58,123,213,0.3);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover:after {
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
}

.btn.btn-choose {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    padding-left: 15px;
    padding-right: 15px;
    color: #fff;
    background:  #764ba2 100%;
}

.btn.btn-choose:hover {
    color: #fff;
    background: rgba(40, 120, 255, 0.85);
}

.btn.btn-choose:active {
    color: #fff;
    background: rgba(40, 120, 255, 0.65);
}

.btn-add-file {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.btn-add-file .btn {
    padding: 10px 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-files li {
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 3px;
}

.list-files li:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.text-filename,
.icon-action {
    display: inline-block;
    vertical-align: middle;
}

.text-filename {
    word-break: keep-all;
    white-space: nowrap;
}

.icon-action {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.icon-action:hover {
    background-color: #03a9f4;
}

.icon-remove:hover {
    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: #fff;
}

.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: #fff;
    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;
}

/* 间距输入控件样式 */
input[type="number"][name="spacing"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="number"][name="spacing"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

input[type="number"][name="spacing"]:hover {
    border-color: #999;
}