/*
   Apple风格Element Plus输入框公共样式
   使用方法：在需要应用样式的el-input上添加 class="apple-input"
   示例：<el-input class="apple-input" ... />
*/

/* 基础样式 - 通过自定义类名限定范围 */
.el-input.apple-input .el-input__wrapper {
    background-color: rgba(255, 255, 255, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem !important;
    padding: 0 1rem !important;
    height: 2.75rem !important;
    transition: all 0.3s ease !important;
}

/* 悬停状态 */
.el-input.apple-input .el-input__wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

/* 聚焦状态 */
.el-input.apple-input .el-input__wrapper:focus-within {
    border-color: #0071e3 !important; /* Apple标志性蓝色 */
    box-shadow: 0 0 0 1px #0071e3 !important;
}

/* 输入文本样式 */
.el-input.apple-input .el-input__input {
    color: white !important;
    padding: 0 !important;
    height: 100% !important;
}

/* 占位符样式 */
.el-input.apple-input .el-input__input::placeholder {
    color: white !important;
}

/* 后缀图标（如密码可见性切换） */
.el-input.apple-input .el-input__suffix-inner {
    color: rgba(255, 255, 255, 0.6) !important;
}

.el-input.apple-input .el-input__suffix-inner:hover {
    color: white !important;
}

/* 清除按钮 */
.el-input.apple-input .el-input__clear {
    color: rgba(255, 255, 255, 0.6) !important;
}

.el-input.apple-input .el-input__clear:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 前缀图标 */
.el-input.apple-input .el-input__prefix {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 可选变体：更大的输入框 */
.el-input.apple-input.large .el-input__wrapper {
    height: 3.25rem !important;
    font-size: 1rem !important;
}

/* 可选变体：更小的输入框 */
.el-input.apple-input.small .el-input__wrapper {
    height: 2.25rem !important;
    font-size: 0.875rem !important;
}

/* 可选变体：浅色模式适配 */
.el-input.apple-input.light .el-input__wrapper {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.el-input.apple-input.light .el-input__input {
    color: #1d1d1f !important;
}

.el-input.apple-input.light .el-input__input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}
