/* 基础样式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
	margin-bottom: 30px;
}

/* 表单行样式 */
form > *:not(button) {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    align-items: center;
}

/* 标签样式 */
form label {
    width: 80px;
    text-align: right;
    margin-right: 10px;
}

/* 输入框和文本框样式 */
input[type="text"],
textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #4a90e2;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* 验证码行特殊样式 */
#checkcode {
    width: 150px;
    margin-right: 10px;
}

/* 验证码图片样式 */
form img {
    cursor: pointer;
    height: 40px;
    margin-right: 10px;
}

/* 提交按钮样式 */
button[type="submit"] {
    width: 150px;
    height: 60px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #357ab8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    form > *:not(button) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    form label {
        text-align: left;
        margin-bottom: 5px;
    }
    
    input[type="text"],
    textarea {
        width: 100%;
    }
    
    #checkcode {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    form img {
        margin-bottom: 10px;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}

/* 验证码行布局调整 */
form > *:nth-last-child(2) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* 在移动端调整验证码行布局 */
@media (max-width: 768px) {
    form > *:nth-last-child(2) {
        flex-direction: column;
        align-items: flex-start;
    }
}