﻿
.upload-box:hover {
    border-color: #38caef;
    color: #38caef;
}

.upload-box input {
    display: none;
}
.bg-line {
    padding-left: clamp(2px, 3vw, 120px);
    padding-right: clamp(2px, 3vw, 120px);
    padding-top: 30px;
    padding-bottom: 8px;
    border: 2px dotted skyblue;
    margin-bottom: 30px;
}

.line {
    border-bottom: 2px dotted skyblue;
    width: 100%;
    margin: 0.5em 0;
    height: 2px;
}

/* 上传框整体居中 */
.upload-box {
    width: 300px;
    height: 180px;
    border: 2px dashed #bbb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    margin: 0 auto 15px auto; /* 水平居中 */
    text-align: center;
}

/* 预览区整体居中 */
.preview-box {
    display: flex;
    justify-content: center; /* 居中对齐 */
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    margin: 0 auto; /* 水平居中 */
    max-width: 100%; /* 不超出容器 */
}

/* 单个预览项 */
.preview-item {
    position: relative;
    flex: 0 0 auto;
}

    .preview-item img {
        min-width: 120px;
        min-height: 120px;
        width: 300px;
        height: 300px;
        object-fit: cover;
        border: 1px solid #ccc;
        border-radius: 6px;
        cursor: pointer;
    }

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 放大预览 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .image-modal.show {
        display: flex; /* 用 flex 保证居中 */
    }

    .image-modal img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
        box-shadow: 0 0 10px #000;
    }


.form__group {
    position: relative;
    padding: 20px 0 0;
    width: 100%;
    /* max-width: 280px; */
    margin-bottom: 25px;
}

.form__field {
    font-family: inherit;
    width: 100%;
    border: none;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 17px;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
}

    .form__field::placeholder {
        color: transparent;
    }

    /* 默认浮动效果 */
    .form__field:placeholder-shown ~ .form__label {
        font-size: 17px;
        cursor: text;
        top: 20px;
    }

.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 17px;
    color: #9b9b9b;
    pointer-events: none;
}

/* 聚焦效果 */
.form__field:focus {
    padding-bottom: 6px;
    font-weight: 700;
    border-width: 3px;
    border-image: linear-gradient(to right, #116399, #38caef);
    border-image-slice: 1;
}

    .form__field:focus ~ .form__label,
    .form__field:not(:placeholder-shown) ~ .form__label {
        color: #38caef;
        font-weight: 700;
    }

/* 错误状态 */
.form__field.is-invalid {
    border-bottom: 2px solid #e74c3c;
}

.form__field.is-invalid ~ .form__label {
    color: #e74c3c;
    font-weight: 700;
}

/* 错误提示文字 */
.form__error {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 4px;
    display: block;
}

.btn-submit {
    background: linear-gradient(135deg, #116399, #38caef);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0e4a6d, #2eb7d7);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.btn-submit:active {
        transform: translateY(0);
        box-shadow: 0 3px 7px rgba(0,0,0,0.2);
    }

.step .title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.step .info {
    text-align: center;
    margin-bottom: 5px;
    font-size: 17px;
}

.step-nav {
    margin: 10px 0;
}
