/** 密码模式 **/
/* 密码保护基础样式 */
.password-category {
    position: relative;
    margin-bottom: 20px;
}

/* 未解锁状态下的内容模糊效果 */
.password-category:not(.unlocked) {
    position: relative;
}

.password-category:not(.unlocked) .password-content {
    display: block !important;
    filter: blur(6px) opacity(0.8) !important;
    pointer-events: none !important;
    user-select: none !important;
    transition: all 0.3s ease !important;
}

/* 密码提示框 - 透明覆盖在模糊内容之上 */
.password-prompt {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 400px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 100 !important;
}

.password-prompt .text-center {
    max-width: 400px;
    margin: 0 auto;
    background: transparent !important;
}

/* 提示内容区域 - 半透明背景 */
.prompt-content {
    backdrop-filter: blur(15px) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    padding: 20px 15px !important;
}

/* 受保护标题样式 */
.password-prompt h4 {
    color: #8c8c8c !important;
    margin-top: 5px !important;
    margin-bottom: 8px !important;
    font-size: 1.3em !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.password-prompt p {
    margin-bottom: 15px !important;
    color: rgba(140, 140, 140, 0.8) !important;
    font-size: 0.95em !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 密码输入组 - 调整高度 */
.password-input-group {
    margin-left: 5px !important;
    margin-right: 5px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    gap: 8px !important;
    align-items: stretch !important;
    justify-content: center !important;
}

.password-input {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #8c8c8c !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    height: 40px !important;
}

.password-input::placeholder {
    color: rgba(140, 140, 140, 0.9) !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

.password-input:focus {
    border-color: rgba(52, 152, 219, 0.8) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2) !important;
    outline: none !important;
}

.password-input:focus::placeholder {
    color: rgba(140, 140, 140, 0.7) !important;
}

/* 按钮渐变颜色方案 - 选择您喜欢的 */
.password-submit {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 70px !important;
    padding: 8px 16px !important;
    
    /* 方案1：紫色渐变 - 现代优雅 */
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    
    /* 方案2：橙红色渐变 - 温暖活力 */
    /* background: linear-gradient(135deg, #f093fb, #f5576c) !important; */
    
    /* 方案3：蓝绿色渐变 - 清新科技 */
    /* background: linear-gradient(135deg, #4facfe, #00f2fe) !important; */
    
    /* 方案4：深紫渐变 - 高级质感 */
    /* background: linear-gradient(135deg, #a8c0ff, #3f2b96) !important; */
    
    /* 方案5：珊瑚渐变 - 柔和温暖 */
    /* background: linear-gradient(135deg, #ff9a9e, #fecfef) !important; */
    
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    white-space: nowrap !important;
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.password-submit:hover {
    /* 对应方案的悬停颜色 */
    /* 方案1悬停 */
    /* background: linear-gradient(135deg, #5a6fd8, #6a4190) !important; */
    /* 方案2悬停 */
    background: linear-gradient(135deg, #e882ed, #e34c5f) !important;
    /* 方案3悬停 */
    /* background: linear-gradient(135deg, #3d9bf4, #00d9e8) !important; */
    /* 方案4悬停 */
    /* background: linear-gradient(135deg, #95b0ff, #372582) !important; */
    /* 方案5悬停 */
    /* background: linear-gradient(135deg, #ff8b90, #fdc1e8) !important; */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 错误提示 */
.password-error {
    color: #ff6b6b !important;
    display: none;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* 解锁后恢复正常显示 */
.password-category.unlocked .password-content {
    display: block !important;
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

.password-category.unlocked .password-prompt {
    display: none !important;
}

/* 分类标题中的锁图标样式 */
.text-gray .icon-lock {
    color: #e74c3c;
}

.text-gray small.password-tag {
    color: #e74c3c !important;
    font-size: 0.6em !important;
    margin-left: 8px !important;
}

/* 夜间模式适配 */
.io-black-mode .prompt-content {
    /* background: rgba(0, 0, 0, 0.8) !important; */
}

.io-black-mode .password-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.io-black-mode .password-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(52, 152, 219, 0.6) !important;
}

.io-black-mode .password-input::placeholder {
    color: rgba(200, 200, 200, 0.9) !important;
}

.io-black-mode .password-input:focus::placeholder {
    color: rgba(200, 200, 200, 0.7) !important;
}

/* 玻璃态效果增强 */
.prompt-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 12px;
    pointer-events: none;
    z-index: -1;
}