/* 加密相关样式 */

.encrypted-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
}

.encrypted-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.placeholder-text {
    display: block;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.decrypt-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.decrypt-btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2c6cb0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.decrypt-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.decrypt-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.decrypt-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 8px;
    padding: 1rem;
    color: #d63031;
    text-align: center;
    font-weight: 600;
}

/* 加密状态指示器 */
.encryption-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.encryption-status.encrypted {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4a90e2;
}

.encryption-status .status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.encryption-status.encrypted .status-icon {
    background: #27ae60;
    animation: pulse 2s infinite;
}

.encryption-status:not(.encrypted) .status-icon {
    background: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 加密内容加载动画 */
.encrypted-content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .encrypted-placeholder {
        padding: 1.5rem;
        margin: 0.5rem 0;
    }
    
    .placeholder-text {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .decrypt-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .encryption-status {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    .encrypted-placeholder {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-color: #3498db;
    }
    
    .placeholder-text {
        color: #ecf0f1;
    }
    
    .decrypt-error {
        background: #c0392b;
        border-color: #e74c3c;
        color: #ecf0f1;
    }
    
    .encryption-status {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }
}