/* 
 * BetterYeah统一输入框样式规则
 * 这个文件定义了网站中所有输入框的通用样式标准
 */

/* 基础输入框样式 */
.input-standard,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
textarea,
select {
    /* 尺寸与填充 */
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    
    /* 文本样式 */
    font-size: 14px;
    line-height: 16px;
    
    /* 边框与圆角 */
    border-radius: 8px;
    border: 1px solid rgba(98, 105, 153, 0.2);
    
    /* 背景与过渡 */
    background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
    transition: all 0.3s ease;
}

/* 悬停状态 */
.input-standard:hover,
input:hover,
textarea:hover,
select:hover {
    border-color: rgba(123, 97, 255, 0.5);
    background: #ffffff;
}

/* 聚焦状态 */
.input-standard:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #7B61FF;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.15);
}

/* 错误状态 */
.input-standard.error,
input.error,
textarea.error,
select.error {
    border-color: #FF512B;
    background: rgba(255, 81, 43, 0.05);
}

/* 禁用状态 */
.input-standard:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 特殊状态输入框 */
.input-special {
    background: linear-gradient(135deg, #f9f9ff 0%, #f0f5ff 100%);
    border: 1px solid rgba(106, 125, 255, 0.3);
}

.input-special:focus {
    border-color: #6A7DFF;
    box-shadow: 0 0 0 3px rgba(106, 125, 255, 0.2);
}

/* 文本区域调整 */
textarea {
    min-height: 72px;
    resize: none;
}

/* 表单字段布局 */
.form-field,
.form-group {
    margin-bottom: 24px;
}

/* 表单标签样式 */
.field-label,
label {
    font-size: 14px;
    line-height: 14px;
    margin-bottom: 12px;
    color: #17171D;
    display: block;
}

/* 必填标记 */
.required {
    color: #FF512B;
}

/* 错误信息样式 */
.error-message {
    color: #FF512B;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 5px;
    display: block;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .input-standard,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    textarea,
    select {
        padding: 9px 10px;
        font-size: 13px;
    }
} 