/* 全局样式 *//* 全局样式 */
html, body {
    height: 100%; /* 确保 html 和 body 元素的高度为 100% */
    overflow: hidden; /* 禁止页面滚动 */
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* 更浅的浅绿色背景 */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 14px; /* 缩小全局字体 */
    overflow: hidden; /* 禁止页面滚动 */
    user-select: none; /* 禁用文本选择 */
    -webkit-user-select: none; /* Safari 和 Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
}

.page-container {
    background-color: #ffffff; /* 白色背景 */
    padding: 15px; /* 缩小内边距 */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 85%; /* 缩小宽度 */
    max-width: 350px; /* 缩小最大宽度 */
    overflow: hidden; /* 禁用滚动条 */
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
}

h2 {
    text-align: center;
    color: #00aa00; /* 更浅的绿色标题 */
    margin-bottom: 30px; /* 缩小间距 */
    font-size: 23px; /* 缩小标题字体 */
}

.input-field {
    width: 90%; /* 调整输入框宽度为90% */
    padding: 8px; /* 缩小输入框内边距 */
    margin: 0 auto 10px; /* 居中显示 */
    border: 1px solid #cce6cc; /* 更浅的绿色边框 */
    border-radius: 4px;
    font-size: 18px; /* 缩小字体 */
    box-sizing: border-box;
    outline: none; /* 移除输入框点击后的蓝色高亮 */
    text-align: center; /* 输入内容居中 */
        resize: none; /* 禁用调整大小 */
            box-shadow: none; /* 移除默认的 box-shadow */


}

.input-field:focus {
    border-color: #00cc00; /* 输入框聚焦时的边框颜色 */
}

.submit-btn {
    background-color: #00aa00; /* 更浅的绿色按钮 */
    color: #fff;
    padding: 8px; /* 缩小按钮内边距 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px; /* 缩小字体 */
}

.submit-btn:hover {
    background-color: #008800; /* 更浅的深绿色按钮悬停效果 */
}

.result {
    margin-top: 30px; /* 缩小间距 */
    background-color: #f7fcf7; /* 更浅的浅绿色背景 */
    border: 1px solid #cce6cc; /* 更浅的绿色边框 */
    border-radius: 4px;
    padding: 8px; /* 缩小内边距 */
    color: #cccccc; /* 灰色字体 */
    text-align: center;
    line-height: 20px; /* 缩小行高 */
    height: 100px; /* 缩小高度 */
    letter-spacing: 1px;
    font-size: 16px; /* 设置字体 */
}

/* 页脚样式 */
.footer {
    margin-top: 25%; /* 缩小间距 */
    text-align: center;
    font-size: 12px; /* 缩小字体 */
    color: #888; /* 灰色字体 */
}

.footer a {
    color: #cccccc; /* 更浅的绿色链接 */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 防伪码字体样式 */
p {
    color: #888; /* 灰色字体 */
    margin: 0 0 5px 0; /* 缩小与输入框的间隙 */
    font-size: 16px; /* 缩小字体 */
}

/* 自定义弹出框样式 */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9; /* 浅灰色背景 */
    border: 1px solid #ddd; /* 浅灰色边框 */
    border-radius: 12px; /* 更大的圆角 */
    padding: 15px 20px; /* 更小的内边距 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 更柔和的阴影 */
    width: 60%; /* 缩小宽度 */
    max-width: 300px; /* 最大宽度为 300px */
    text-align: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out; /* 淡入动画 */
}

.popup p {
    margin: 0;
    font-size: 16px; /* 更小的字体 */
    color: #333; /* 深灰色字体 */
    line-height: 1.4; /* 更小的行高 */
}

.popup .close-btn {
    margin-top: 15px;
    background-color: #00aa00; /* 绿色按钮 */
    color: #fff;
    border: none;
    border-radius: 8px; /* 更大的圆角 */
    padding: 8px 15px; /* 更小的按钮内边距 */
    cursor: pointer;
    font-size: 14px; /* 更小的字体 */
    transition: background-color 0.3s ease; /* 按钮悬停效果 */
}

.popup .close-btn:hover {
    background-color: #008800; /* 深绿色按钮悬停效果 */
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 更深的遮罩层 */
    z-index: 999;
}

/* 弹出框淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 滑动验证样式 */
#slide-verify {
    width: 100%; /* 调整滑动验证框宽度为90% */
    margin: 0 auto 10px; /* 居中显示 */
}

/* 输入框的 placeholder 样式 */
.input-field::placeholder {
    font-size: 14px; /* 更小的字体 */
    color: #cccccc; /* 更淡的颜色 */
    text-align: left; /* 提示文字左对齐 */
}

/* 防伪码输入框样式 */
.input-container {
    width: 100%; /* 父容器宽度为100% */
    display: flex;
    flex-direction: column;
    align-items: center; /* 确保子元素居中 */
}

.input-field {
    width: 100%; /* 调整输入框宽度为90% */
    padding: 8px; /* 缩小输入框内边距 */
    margin: 0 auto 10px; /* 居中显示 */
    border: 1px solid #cce6cc; /* 更浅的绿色边框 */
    border-radius: 4px;
    font-size: 18px; /* 缩小字体 */
    box-sizing: border-box;
    outline: none; /* 移除输入框点击后的蓝色高亮 */
    text-align: center; /* 输入内容居中 */
}

/* 滑动验证容器样式 */
.slide-container {
    width: 100%; /* 父容器宽度为100% */
    display: flex;
    flex-direction: column;
    align-items: center; /* 确保子元素居中 */
}

/* 标签样式 */
.label {
    margin-left: 0px; /* 向右移动20px */
    align-self: flex-start; /* 确保标签居左 */
}

/* 自动添加的 - 符号样式 */
.input-field .hyphen {
    color: #ffffff; /* 更淡的颜色 */
}