.CH a{
    color: black;
}

.CH a:hover{
    color:white;
}

.OI form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.OI{
    width: 90%;
    max-width: calc(100% - 800px);
    margin: 70px auto;
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 50px;
    background: 
        linear-gradient(to bottom, rgb(255, 0, 0) 2%, rgb(255, 255, 255) 2% 98%, black 98%);
    box-shadow: 5px 5px 10px rgb(219, 219, 219);
    border-radius: 10px;
    border: 2px solid #ccc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.OI p{
    font-size: 25px;
}

label{
    font-size: 17px;
}

label span{
    color: rgb(196, 0, 0);
}

.OI input[type="text"],
.OI input[type="email"],
.OI textarea {
    width: 100%;
    margin-left: -5px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 17px;
    margin-bottom: 15px;
}

.OI input[type="text"]:focus,
.OI input[type="email"]:focus,
.OI textarea:focus {
    border-color: red;
    border-width: 1px;
    outline: none; /* 移除默认的浏览器边框 */
}

.button-container .button{
    background-color: rgb(0, 0, 0); /* 设置背景为红色 */
    color: rgb(255, 255, 255); /* 设置字体颜色为黑色 */
    border: none; /* 移除默认边框 */
    padding: 10px 20px; /* 设置按钮的内边距 */
    border-radius: 25px; /* 使按钮变得圆滑 */
    font-size: 16px; /* 设置字体大小 */
    font-weight: bold; /* 使字体加粗 */
    cursor: pointer; /* 鼠标悬停时显示为指针 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 添加过渡效果 */
    width: 30px; /* 设置宽度为自动，根据内容调整 */
    height: 40px; /* 设置高度为自动，根据内容调整 */
    min-width: 80px; /* 设置按钮的最小宽度 */
    min-height: 30px; /* 设置按钮的最小高度 */
}

.button-container {
    text-align: right; /* 右对齐 */
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.button-container .button:hover{
    background-color: rgb(255, 0, 0); /* 鼠标悬停时背景变为深红色 */
    color: rgb(0, 0, 0);
    transform: scale(1.05); /* 鼠标悬停时略微放大按钮 */
}

/*captcha*/
.Ccontainer{
    position: relative;
    max-width: 300px;
    width: 100%;
    background: rgb(255, 255, 255);
    height: auto;
    box-sizing: border-box;
}

.Ccontainer header{
    color: black;
    margin-bottom: 20px;
    font-size:18px;
}

.Ccontainer .input_field{
    height: 45px;
    margin-top: 15px;
    width: 100%;
}

.captch_box {
    position: relative; /* 确保 refresh_button 相对 captch_box 定位 */
}

.input_field input {
    padding-right: 40px; /* 为输入框内的文本添加右边距，避免与按钮重叠 */
}

.refresh_button{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgb(0, 0, 0);
    height: 30px;
    width: 30px;
    border-radius: 4px;
    color: rgb(255, 0, 0);
    cursor: pointer;
    border: none;
}
.refresh_button:active{
    transform: translateY(-50%) scale(0.98);
}

.input_field input,
.button button{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 8px;
}

.button button{
    margin-left: -3px;
    background-color: rgb(0, 0, 0); /* 设置背景为红色 */
    color: rgb(255, 255, 255); /* 设置字体颜色为黑色 */
    border: none; /* 移除默认边框 */
    border-radius: 10px; /* 使按钮变得圆滑 */
    font-size: 16px; /* 设置字体大小 */
    font-weight: bold; /* 使字体加粗 */
    cursor: pointer; /* 鼠标悬停时显示为指针 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 添加过渡效果 */
}

.button button:hover{
    background-color: rgb(255, 0, 0); /* 鼠标悬停时背景变为深红色 */
    color: rgb(0, 0, 0);
    transform: scale(1.05); /* 鼠标悬停时略微放大按钮 */
}

@media screen and (max-width: 1200px) {
    .OI {
        width: 100%;
        height: auto;
        max-width: calc(100% - 100px);
    }
}