* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-size: 14px; */
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
}

.container {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.png');
    /* 替换为你的图片路径 */
    background-size: cover;
    /* 覆盖整个容器，保持宽高比 */
    background-position: center;
    /* 图片居中 */
    background-repeat: no-repeat;
    /* 不重复图片 */
    background-attachment: fixed;
    /* 可选：固定背景 */
}

.img1 {
    top: 0rem;
    right: 0rem;
    width: 7.313rem;
    height: 12.563rem;
    position: absolute
}

.img2 {
    bottom: 0rem;
    left: 0rem;
    width: 17rem;
    height: 13.5rem;
    position: absolute
}

.img-extract {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 45.227rem;
    height: 61.938rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 1.5rem));
    /* background-image: url('img/dikuang.png');
    background-color: #a30000; */
    /* 替换为你的图片路径 */
    /* background-repeat: no-repeat; */
    /* 不重复图片 */
    /* background-size: cover;
    background-attachment: fixed;
    background-position: center; */
    /* 可选：固定背景 */

    /* 居中 + 下移 1.5rem */
}

.img-extract-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
}

.img-extract-container {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    top: 0;
}

.img3 {
    top: 0;
    left: 50%;
    width: 23.875rem;
    height: 6.188rem;
    transform: translate(-50%, -50%);
    position: absolute
}

.description {
    /* width: 32rem; */
    height: 1.688rem;
    margin: 5.813rem auto 0;
    /* 上边距6rem，左右自动居中 */
    font-family: SourceHanSansCN-Regular;
    font-size: 2rem;
    font-weight: normal;
    line-height: 2.25rem;
    text-align: center;
    /* 文字水平居中 */
    color: #3c1a0a;
}

.tip {
    /* width: 32rem; */
    height: 1.813rem;
    margin: 2.438rem auto 0;
    /* 上边距6rem，左右自动居中 */
    font-family: SourceHanSansCN-Medium;
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 2.25rem;
    text-align: center;
    /* 文字水平居中 */
    color: #3c1a0a;
}

.code-input {
    width: 37.125rem;
    height: 5.25rem;
    background-color: #fff4e3;
    border-radius: 0.625rem;
    border: solid 0.063rem #7e6b5a;
    display: block;
    margin: 1.063rem auto 0;
    /* 上边距6rem，左右自动居中 */
    box-sizing: border-box;
    /* left: 50%; */
    /* transform: translateX(-50%); */

    /* 新增文字样式 */
    font-family: Arial-BoldMT, Arial, sans-serif;
    /* 首选Arial-BoldMT，降级方案 */
    font-size: 1.875rem;
    font-weight: bold;
    color: #4c341e;
    text-align: center;
    /* 文字水平居中 */

    /* 可选：调整placeholder样式 */
    &::placeholder {
        color: #aaa;
        /* 浅灰色placeholder */
        opacity: 1;
        /* 确保Firefox中不透明 */
    }
}

.btn {
    width: 37.125rem;
    height: 4.625rem;
    border-radius: 2.313rem;
    font-family: SourceHanSansCN-Regular, "Source Han Sans CN", sans-serif;
    font-size: 1.875rem;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0rem;
    color: #ffffff;
    cursor: pointer;
    /* transition: all 0.3s; */

    /* 新增布局属性 */
    display: block;
    margin: 2.875rem auto 0;
    /* 上边距2.875rem，左右自动居中 */
    border: none;
    /* 移除默认边框 */
    outline: none;
    /* 移除聚焦轮廓（可自定义样式替代） */
}

.btn-show {
    background-color: #e4a75f;
}

.btn-show:hover {
    background-color: #d39a54;
}

.btn-show:focus {
    background-color: #d39a54;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 35.5rem;
    height: 27.5rem;
    margin: 2.563rem auto 0;
    background-color: #f8f6f1;
    border-radius: 1.25rem;
    border: dashed 0.125rem #787878;
}

.result-image {
    max-width: 33.688rem;
    max-height: 25.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.5s ease;


}

.error-message {
    width: 34.938rem;
    height: 3.5rem;
    background-color: #eeeeee;
    border-radius: 0.625rem;
    display: none;
    animation: fadeIn 0.3s ease;

    /* 新增居中与边距 */
    margin: 1.188rem auto 0;
    /* 上边距1.188rem，左右auto居中 */

    position: relative;
}

.error-message-img {
    position: absolute;
    width: 1.625rem;
    height: 1.625rem;
    left: 6.75rem;
    /* 左侧间距 */
    top: 50%;
    transform: translateY(-50%);
    /* 垂直居中 */
}

.error-message-tip {
    font-family: SourceHanSansCN-Regular, "Source Han Sans CN", sans-serif;
    font-size: 1.75rem;
    line-height: 3.5rem;
    /* 与容器同高实现垂直居中 */
    letter-spacing: 0rem;
    color: #a30000;
    margin-left: 9.063rem;
    /* 6.75rem(图标) + 0.688rem + 图标宽度 */
    white-space: nowrap;
    /* 防止文字换行 */
}

.success-message {
    width: 34.938rem;
    height: 3.5rem;
    background-color: #eeeeee;
    border-radius: 0.625rem;
    display: none;
    animation: fadeIn 0.3s ease;

    /* 新增居中与边距 */
    margin: 1.188rem auto 0;
    /* 上边距1.188rem，左右auto居中 */

    position: relative;
}

.success-message-img {
    position: absolute;
    width: 1.625rem;
    height: 1.625rem;
    left: 10.875rem;
    /* 左侧间距 */
    top: 50%;
    transform: translateY(-50%);
    /* 垂直居中 */
}

.success-message-tip {
    font-family: SourceHanSansCN-Regular, "Source Han Sans CN", sans-serif;
    font-size: 1.75rem;
    line-height: 3.5rem;
    /* 与容器同高实现垂直居中 */
    letter-spacing: 0rem;
    color: #0f8034;
    margin-left: 13.313rem;
    /* 6.75rem(图标) + 0.688rem + 图标宽度 */
    white-space: nowrap;
    /* 防止文字换行 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}