/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0; /* 浅灰色背景 */
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(150, 200, 150, 0.1),
            rgba(150, 200, 150, 0.1) 10px,
            transparent 10px,
            transparent 20px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(150, 200, 150, 0.1),
            rgba(150, 200, 150, 0.1) 10px,
            transparent 10px,
            transparent 20px
        );
    background-size: 150px 150px; /* 背景图案大小 */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 18px; /* 默认字体大小 */
    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: 30px; /* 内边距 */
    border-radius: 12px; /* 更大的圆角 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 更深的阴影 */
    width: 60%; /* 宽度 */
    max-width: 800px; /* 最大宽度 */
}

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

h2 {
    text-align: center;
    color: #00aa00; /* 绿色标题 */
    margin-bottom: 40px; /* 间距 */
    font-size: 32px; /* 更大的标题字体 */
}

.input-field {
    width: 100%; /* 输入框宽度 */
    padding: 12px; /* 输入框内边距 */
    margin: 0 auto 20px; /* 居中显示 */
    border: 2px solid #cce6cc; /* 更粗的绿色边框 */
    border-radius: 6px; /* 更大的圆角 */
    font-size: 20px; /* 字体 */
    box-sizing: border-box;
    outline: none; /* 移除输入框点击后的蓝色高亮 */
    text-align: center; /* 输入内容居中 */
    transition: border-color 0.3s ease; /* 边框颜色过渡效果 */
}

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

.submit-btn {
    background-color: #00aa00; /* 绿色按钮 */
    color: #fff;
    padding: 12px; /* 按钮内边距 */
    border: none;
    border-radius: 6px; /* 更大的圆角 */
    cursor: pointer;
    font-size: 22px; /* 字体 */
    transition: background-color 0.3s ease, transform 0.2s ease; /* 按钮悬停效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 按钮阴影 */
}

.submit-btn:hover {
    background-color: #008800; /* 深绿色按钮悬停效果 */
    transform: translateY(-2px); /* 按钮悬停时稍微上移 */
}

.result {
    margin-top: 40px; /* 间距 */
    background-color: #f7fcf7; /* 浅绿色背景 */
    border: 2px solid #cce6cc; /* 更粗的绿色边框 */
    border-radius: 6px; /* 更大的圆角 */
    padding: 15px; /* 内边距 */
    color: #cccccc; /* 深灰色字体 */
    text-align: center;
    line-height: 28px; /* 行高 */
    height: 150px; /* 高度 */
    letter-spacing: 1px;
    font-size: 20px; /* 字体 */
    overflow-y: auto; /* 结果区域可滚动 */
}

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

.footer a {
    color: #cccccc; /* 绿色链接 */
    text-decoration: none;
    transition: color 0.3s ease; /* 链接悬停效果 */
}

.footer a:hover {
    color: #008800; /* 深绿色链接悬停效果 */
    text-decoration: underline;
}

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

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

.popup p {
    margin: 0;
    font-size: 20px; /* 字体 */
    color: #333; /* 深灰色字体 */
    line-height: 1.6; /* 行高 */
}

.popup .close-btn {
    margin-top: 25px;
    background-color: #00aa00; /* 绿色按钮 */
    color: #fff;
    border: none;
    border-radius: 10px; /* 更大的圆角 */
    padding: 12px 25px; /* 按钮内边距 */
    cursor: pointer;
    font-size: 18px; /* 字体 */
    transition: background-color 0.3s ease, transform 0.2s ease; /* 按钮悬停效果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 按钮阴影 */
}

.popup .close-btn:hover {
    background-color: #008800; /* 深绿色按钮悬停效果 */
    transform: translateY(-2px); /* 按钮悬停时稍微上移 */
}

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

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

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

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

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

.input-field {
    width: 100%; /* 输入框宽度 */
    padding: 12px; /* 输入框内边距 */
    margin: 0 auto 20px; /* 居中显示 */
    border: 2px solid #cce6cc; /* 更粗的绿色边框 */
    border-radius: 6px; /* 更大的圆角 */
    font-size: 20px; /* 字体 */
    box-sizing: border-box;
    outline: none; /* 移除输入框点击后的蓝色高亮 */
    text-align: center; /* 输入内容居中 */
}

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

/* 标签样式 */
.label {
    margin-left: 0px; /* 向右移动20px */
    align-self: flex-start; /* 确保标签居左 */
    font-size: 20px; /* 字体 */
    color: #555; /* 深灰色字体 */
}

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